User Tag List

Results 1 to 8 of 8

Thread: Gps position

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2011
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gps position

    Hi all,

    I'm making an application for ios with the localisation object (i'm not sure the name is this in english) and i have a problem.

    I would like to go to an url with gps information. But how to go to http://www.google.com/position=$position ? (it's an example)

    I know how to use varibale in php, but how to use it in mmf ?

    You can see screenshot to see what i'm talking about.
    Images attachées Images attachées

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Gps position

    I think you would need to use the Webview extension

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=244754&Searchpa ge=1&Main=33591&Words=webview&Search=true#Post2447 54

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2011
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gps position

    Yes but how to write the url in webview ?

    I would like to add the gps position in the url like that :

    www.mywebsite.com/application.php?position=(here i don't know what to write).

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Gps position

    Depends on what the webpage wants so it can display the location.

    When you use the page in the browser now what does the actual URL look like?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2011
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gps position

    For example, i want to send the variables who contain the latitude and longitude.

    I can send this url :

    http://www.mywebsite.com/application.php?latitude=29.68&longitude=2.65

    But the problem is :

    I would like to know how to write automaticatly 29.68 and 2.65 in mmf.

    If i write like this in a condition :

    "http://www.mywebsite.com/application.php?latitude=Latitude( "Object Localisation" )&longitude=Longitude( "Object Localisation" )"

    It doesn't work...

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gps position

    Use the Get object and for the Get URL you would specify something like:

    "http://www.website.com/page.php?lat=" + Str$(Latitude( "Location object" )) + "lon=" + Str$(Longitude( "Location object" ))

    Notice that I must use Str$ to convert numeric values to strings before I can concatenate them in MMF2.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gps position

    Google Maps does have a library for iOS without needing a web view, but someone would have to code an extension. I'd use the method you are currently trying but instead have

    "http://maps.google.com/?q="+Str$(Latitude( "Location object" )) + "," + Str$(Longitude( "Location object" ))

    As the address you tell the web view to go to.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2011
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gps position

    Wow it works, thank you very much my friends !

Similar Threads

  1. Set Position to...
    By Wolfking_Warrior in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 16th November 2012, 12:41 AM
  2. set position of object to position of rotating object
    By Bogeyman in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th March 2012, 03:24 PM
  3. Set Position
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th November 2011, 07:15 PM
  4. Position relative et position absolue
    By volgot in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th March 2011, 04:08 AM
  5. Screen position relative to taskbar position?
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd April 2009, 08:55 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
  •