We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey, I am using Unfolding Maps library to integrate the Open Street Maps Provider into my Java Application. What I want is that as the application starts the map directly zooms and points to the current geo Location of the user. So, the main problem I am encountering is to get the Geo Location of the user in processing. Any ideas anyone? Any help as soon as possible will be great.
Thanks!
Answers
you can make GET requests to this api to get the long/lat from his ip
http://www.telize.com/
you actually need this endpoint http://www.telize.com/geoip
the response is in json format
Thanks for the link. This works pretty well. But I think its accuracy is not that good. The actual location is varying by about 5 kms. What should I do?
maybe search for other geoip services and use the one that seems more accurate.. i do not think that you can get the exact location , i mean dont expect that it will be as accurate as a gps device
So, If I want to develop an android application how can I access the gps service of the phone from my processing application? Is it possible?
Also, does any API exist on which I can query for the longitude and the latitude of a place? The query can be a string consisting of the name/location of the place.
i have not used processing in android a lot so i cannot answer for sure, i assume you can get pgs location by setting appropriate permissions..better wait for someone else answer this
what you need is a geocoding service, like google`s or maybe you can find another provider..try to search in the programmableweb.com
example with the address of Facebook headquarters that i found on line, using curl
try your address and add your street number ex youAddress+10 and then check here just to be sure