User Tag List

Results 1 to 7 of 7

Thread: Google Maps - Route Distance Calulation

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google Maps - Route Distance Calulation

    How would I go about getting the total distance of a route constructed with this URL?

    https://maps.google.com/maps?saddr=London&daddr=Glasgow

    When this URL is clicked, Google Maps returns a distance of 402 miles. How would I get this figure automatically, without the user having to type it in?

    Thanks!

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Not really sure what this has to do with MMF...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...in MMF2 Developer.

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,010
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    I think there is no sure-fire way approach to this but I'll take a haphazard guess...Have you tried using the Web Browser Control object? You could input the correct url to proceed to then GET the results from the page returned? Once the page is returned and loaded you could search for "miles" and then retrieve the first 4-5 characters before it also, then display that in a string?Just a thought.
    Want to learn Clickteam Fusion 2.5?




  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks - I used the get object, and found that the distance comes in <span> tags like this:
    <span>XXX km</span>

    Bearing in mind that the XXX can change, how would I get just the XXX km from the received content of the Get Object? It would need to work on iOS. Thanks!

    Also, how would I round a number to two decimal places without using the Double Precision Calculator?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any ideas how I'd do this? Thanks!

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Nov 2011
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try with web object for develloper 2:

    http://community.clickteam.com/showthread.php?t=54138

Similar Threads

  1. Google Maps
    By Fernando in forum Android Extensions
    Replies: 6
    Last Post: 12th August 2014, 12:25 AM
  2. Google Maps
    By Game_Master in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 9th June 2012, 10:26 AM
  3. StevenL - Google Maps Control question
    By Tuna in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 2nd August 2011, 05:05 PM
  4. [Released] Google Maps
    By Stephen in forum Beta Flash Extensions
    Replies: 22
    Last Post: 17th May 2011, 05:18 PM
  5. Google Maps
    By Stephen in forum SWF/Flash Extensions
    Replies: 0
    Last Post: 17th May 2011, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •