aspose file tools*
The moose likes Android and the fly likes How to Get name of the place using longitude and latitude? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to Get name of the place using longitude and latitude?" Watch "How to Get name of the place using longitude and latitude?" New topic
Author

How to Get name of the place using longitude and latitude?

Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I am developing an application which will determine in which building/college/University you are?
Then it will find the available labs in that building. I have the coordinates of those places.
I want to know that once I get the current location in terms of longitude and latitude how will I get the name of that place?
I have seen some applications which checks you in when you go to some coffee place or pubs.


Thanks for the help.


My Blog SCJP 5 SCWCD 5
zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 153

you can use Geocoding to determine the name of the place
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I Just want to confirm that the Geocoder will give the name of the city. Can I get the name of the place as well?

Thanks for the reply.

zoheb hassan
Ranch Hand

Joined: Apr 01, 2009
Posts: 153

If by name of the place you mean building name then i dont think it would work but you can retrieve street address and city name
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Thanks.

I looked the Geocoder class and I think that can help me in getting what I need.
Is anyone here aware of the problem of Samsung Galaxy GPS system?
If yes is there any solution to that?
I have tried some approaches but nothing worked.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
Is anyone here aware of the problem of Samsung Galaxy GPS system?

What is "the problem"?


Ping & DNS - my free Android networking tools app
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

The GPS system is not reliable. It stops working or I should say it works randomly.
There is a lot of buzz in the community regarding the same. A quick Google search will yield thousands of complaints.
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Is it possible to get the directions as well using the longitude and latitude.
I want to locate the user on his co-ordinates and then other objects in a plane by maintaining their relative positioning.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
Anything related to "getting directions" will likely involve calls to the Google Maps web service. I don't think Android comes with an API that wraps those calls in Java classes, but such classes probably exist somewhere out on the net.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Get name of the place using longitude and latitude?