• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use Geocoding to determine the name of the place
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 154
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anyone here aware of the problem of Samsung Galaxy GPS system?

What is "the problem"?
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic