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
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
[url]http://www.forum.nokia.com/info/sw.nokia.com/id/f7e8ad78-7898-4053-ab83-74c147923866/MIDP_Location_API_Example_Tourist_Route_v1_0.zip.html[/url]
Also have a look at MIDP: Location API Developer's Guide v2.0
[url]http://www.forum.nokia.com/info/sw.nokia.com/id/175bf8e6-a1f5-4d3d-a591-6fc936506a6b/MIDP_Location_API_Developers_Guide_v2_0_en.pdf.html[/url]
Regards
Gopal
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.
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
Re: JSR 179 -Getting Longitude Latitude Values of Current Location
Hi Balagopal,
Thanks for your suggestions and i tested the [B]Tourist Route[/B]application. I am getting the latitude and longitude information propertly in [B]N95 Device[/B]. 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
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
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
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..
Re: JSR 179 -Getting Longitude Latitude Values of Current Location
[QUOTE=DileepKumar;868907]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..[/QUOTE]
You have already got answer for a very similar question here [url]http://www.developer.nokia.com/Community/Discussion/showthread.php?82526-Find-CellID-with-J2ME&p=868903&posted=1#post868903[/url]
Regards
Gopal
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 = [B]LocationUtil.getLocationProvider(methods, null);[/B]
The importing error is do the LocationUtil class error.
Now,how to i solve this one.
Please tell me..
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[B] com.nokia.mid.location.LocationUtil;[/B]
now, i want to find location in satellite based and network based positioning without this[B] com.nokia.mid.location.LocationUtil;[/B]
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?
Re: JSR 179 -Getting Longitude Latitude Values of Current Location
[QUOTE=DileepKumar;869291]
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?[/QUOTE]
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).