×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    20

    Open google map site with current Longitude and Latitude

    Hi

    I am develop fl 3.0 application. I need to open google map site with current Longitude and Latitude.

    example : import com.nokia.lib.Service;
    var location = new Service("Service.Location", "ILocation");
    var inParams = {LocationInformationClass:"GenericLocationInfo"};
    location.GetLocation(inParams,onReceive);
    function onReceive (transactionID:Number, eventID:String, outParam:Object) {
    if (outParam.ErrorCode == 0) {
    var outList = outParam.ReturnValue;
    var longitude = outList.Longitude;// Contains longitudinal data
    var latitude = outList.Latitude;// Contains latitudinal data

    } else {
    var errorId = outParam.ErrorCode;
    }
    }

    Anyone help me

    Thankx
    videoFx
    Last edited by videoFx; 2009-04-06 at 13:04.

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Open google map site with current Longitude and Latitude

    Quote Originally Posted by videoFx View Post
    Hi

    I am develop fl 3.0 application. I need to open google map site with current Longitude and Latitude.

    Anyone help me

    Thankx
    videoFx
    What u can do in flash lite is pass the variables (i.e longitude and latitude) to a php using loadVariables or Send Variable api and program a php to do this task for u. i dont know whether google official site provide this functionality but i found a 3rd party site which enables u to send longitude and latitude to their php page and it opens map from the given parameters .Let me write an example:
    Code:
    var my_lv:LoadVars = new LoadVars();
    my_lv.lat = 44; //dont change the 3 parameters i.e lat, lon and setLatLon
    my_lv.lon = 333;
    my_lv.setLatLon = "Set";
    my_lv.send("http://www.gorissen.info/Pierre/maps/googleMapLocation.php", "_blank", "POST");
    or u can use loadVariables api .
    Code:
    loadVariables("http://www.gorissen.info/Pierre/maps/googleMapLocation.php?" + "lat=44" + "&lon=333" + "&setLatLon=Set", _root, "POST";
    I didnt tested the example but think it works.& Hope it helps...

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    20

    Re: Open google map site with current Longitude and Latitude

    But i need current GPS location then pass to these value to code. How can i get current GPS location in Flashlite.

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: Open google map site with current Longitude and Latitude

    Quote Originally Posted by videoFx View Post
    But i need current GPS location then pass to these value to code. How can i get current GPS location in Flashlite.
    Sorry i misunderstood u. U mentioned in another post THAT U R uSInG N96 ??? N96 is a 3rd edition phone and the code u provided is for 5th edition phones only (which is only 5800 at the moment). U have to use a kuneri lite for this purpose, take a look here:
    google maps in flash lite
    Hope it helps u..

    Best Regards,
    SajiSoft

Similar Threads

  1. JSR 179 -Getting Longitude Latitude Values of Current Location
    By satyarajasekhar in forum Geolocation and Navigation
    Replies: 11
    Last Post: 2011-11-16, 12:00
  2. how to get map of a location if I know its Latitude and Longitude?
    By rohanwaugh in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2011-06-28, 07:44
  3. regarding gps and download of google map.
    By sanee in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-12-05, 08:57
  4. How to scroll static google map image ?
    By vinod_mrd in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-08-20, 08:25
  5. How to scroll static google map image ?
    By vinod_mrd in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2008-08-19, 11:55

Posting Permissions

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