So I get Latitude/Longitude data from
[lua]Runtime:addEventListener(“location”,locationHandler)[/lua]
How do I determine to which country the latitude/longitude belong?
[import]uid: 64174 topic_id: 35300 reply_id: 335300[/import]
So I get Latitude/Longitude data from
[lua]Runtime:addEventListener(“location”,locationHandler)[/lua]
How do I determine to which country the latitude/longitude belong?
[import]uid: 64174 topic_id: 35300 reply_id: 335300[/import]
Here is something I found at stack overflow: http://stackoverflow.com/questions/4497728/get-country-from-latitude-longitude
Basically, pass the lat and lng info into the url’s , and you’ll get a country code back.
http://ws.geonames.org/countryCode?lat=49.03&lng=10.2 —Ellenberg, Germany
http://ws.geonames.org/countryCode?lat=36.095779&lng=-115.17580649 – Luxor Casino ,Nevada USA
[import]uid: 135765 topic_id: 35300 reply_id: 140305[/import]
Have a look here:
http://docs.coronalabs.com/api/library/native/newMapView.html
[import]uid: 106768 topic_id: 35300 reply_id: 140318[/import]
Yeah! thats what I ended up doing in the end,but surely there is a more elegant solution?
Works pretty well for now though… so no worries… [import]uid: 64174 topic_id: 35300 reply_id: 140356[/import]
Here is something I found at stack overflow: http://stackoverflow.com/questions/4497728/get-country-from-latitude-longitude
Basically, pass the lat and lng info into the url’s , and you’ll get a country code back.
http://ws.geonames.org/countryCode?lat=49.03&lng=10.2 —Ellenberg, Germany
http://ws.geonames.org/countryCode?lat=36.095779&lng=-115.17580649 – Luxor Casino ,Nevada USA
[import]uid: 135765 topic_id: 35300 reply_id: 140305[/import]
Have a look here:
http://docs.coronalabs.com/api/library/native/newMapView.html
[import]uid: 106768 topic_id: 35300 reply_id: 140318[/import]
Yeah! thats what I ended up doing in the end,but surely there is a more elegant solution?
Works pretty well for now though… so no worries… [import]uid: 64174 topic_id: 35300 reply_id: 140356[/import]