×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    46

    JSR 179 -Getting Longitude Latitude Values of Current Location

    Hi,
    is there any example for displaying the current position's longitude and latitude values from mobile.

    I had seen the examples regarding entering manually the latitude and longitude values from the emulator and through the xml file. But where can i get those values if i want to display my exact current location's longitude and latitude values dynamically.

    Thanks,
    G.S.Rajasekhar

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Here is a sample app that could be of some interest to you.

    MIDP: Location API Example - Tourist Route
    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html

    Also have a look at MIDP: Location API Developer's Guide v2.0
    http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html

    Regards
    Gopal

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    46

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    I am using N95 device and if am using JSR 179 i.e, location API is it possible to get the longitude and latitude values directly.

    In location API we are having Coordinates class with which we can get latitude and longitude information by means of following methods.

    Coordinates.getLatitude and Coordinates.getLongitude

    If iam not setting manually the latitude and longitude either by means of setLatitude and setLongitude methods of Coordinates or by way of giving the waypoints in the form of an xml file, is it possible to get the latitude and longitude automatically.

    In general, what is the location method that is retrieved by the N95 device.

    Please help me in this aspect.

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Have you tried the sample app that I have mentioned in my pevious reply ? Since N95 does have inbuilt GPS, it will return the Latitude and Longitude values. To get the values, you have to keep the phone out side the building so that the phone is visible to the open sky. In my experience, for the first time it might take some 5-6 min to retrive the values and after that it will be faster.

    Regards
    Gopal

  5. #5
    Registered User
    Join Date
    Aug 2007
    Posts
    46

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Hi Balagopal,
    Thanks for your suggestions and i tested the Tourist Routeapplication. I am getting the latitude and longitude information propertly in N95 Device. My question is since N95 was GPS enabled there was no problem in getting the location values.
    If we install the Tourist Route application in a mobile which doesn't supports GPS, can we get the latitude and longitude values.
    Please help me in getting the latitude and longitude values by means of reamining methods either network or handset based.

    I heard that we can get the map, latitude and longitude values from server by means of Google API. Is there any plugin that we can use from the server side to connect to google maps API and get all the information.

    Thanks,
    G.S.Rajasekhar

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    If your phone supports JSR 179 but dont have inbuit GPS, you can get the Longitude and Latitude from your Network provider. Make sure that your network provider does support Location services. Also you can use external GPS modules(not tried so far..)

    Regards
    Gopal

  7. #7
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Hi,
    iam also trying that one for so many days. In N95 devices, since the GPS was in-built available it was displaying.

    My task is following.

    Suppose if we take a java enabled mobile and take it to anywhere, then it has to get the latitude and longitude of that particular location and display the map of that particular location.

    I am bothering for that task for so many days. I am googling for that one from so many days. What i am getting is if i give a location name or place name, it was giving the latitude and longitude. But i had to get that longitude and longitude dynamically.

    Please anybody help me.

    Thanks,
    G.S.Rajasekhar

  8. #8
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Hi,
    I am studied your forum. now i want to get latitude and longitude values from network provider. I am already wrote the code in GPS provider.
    But i don't know how to switch over the gps to network?
    please help me..

  9. #9
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Quote Originally Posted by DileepKumar View Post
    Hi,
    I am studied your forum. now i want to get latitude and longitude values from network provider. I am already wrote the code in GPS provider.
    But i don't know how to switch over the gps to network?
    please help me..
    You have already got answer for a very similar question here http://www.developer.nokia.com/Commu...d=1#post868903

    Regards
    Gopal

  10. #10
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    I am import this code means it give error.
    import com.nokia.mid.location.LocationUtil;

    I am using the following code

    int[] methods = {(Location.MTA_ASSISTED | Location.MTE_CELLID | Location.MTE_SHORTRANGE | Location.MTY_NETWORKBASED)};
    provider = LocationUtil.getLocationProvider(methods, null);

    The importing error is do the LocationUtil class error.
    Now,how to i solve this one.
    Please tell me..

  11. #11
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Hi ,
    I am find the current location in satellite based and network based positioning.
    But,I am using the package com.nokia.mid.location.LocationUtil;

    now, i want to find location in satellite based and network based positioning without this com.nokia.mid.location.LocationUtil;
    I use the JSR-179 . I get the satellite based position. But i don't know how to get the network based position using JSR-179 .
    Its possibe? How?

  12. #12
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: JSR 179 -Getting Longitude Latitude Values of Current Location

    Quote Originally Posted by DileepKumar View Post
    I use the JSR-179 . I get the satellite based position. But i don't know how to get the network based position using JSR-179 .
    Its possibe? How?
    It either happens transparently to you through the JSR-179 (i.e., it just works), or it doesn't happen at all (in which case the answer is: not possible on that particular implementation on that particular device).

Similar Threads

  1. Replies: 7
    Last Post: 2008-02-08, 12:02
  2. Location api jsr 179 and Bluetooth GPS
    By prategiov in forum Mobile Java General
    Replies: 21
    Last Post: 2007-12-04, 23:36
  3. Location API JSR 179
    By scarasimon in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2007-11-15, 18:13
  4. E61, CDC & JSR 179
    By jdesjean in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-06-27, 13:41
  5. Location API (JSR 179) in Nokia Phones
    By mgruebsch in forum Mobile Java General
    Replies: 1
    Last Post: 2004-09-17, 04:50

Posting Permissions

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