Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There's a method to get lat, lon from map <a href="https://stackoverflow.com/questions/4646584/how-to-get-lat-and-long-on-touch-event-from-goole-map">how to get lat and long on touch event from google map?</a></p> <p>After that you can call Google Geo Code API to convert this lat,lon to physical address,</p> <p>i.e. </p> <pre><code>http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&amp;sensor=true_or_false </code></pre> <p>The Above link will return JSON</p> <pre><code>{ "status": "OK", "results": [ { "types": street_address, "formatted_address": "275-291 Bedford Ave, Brooklyn, NY 11211, USA", "address_components": [ { "long_name": "275-291", "short_name": "275-291", "types": street_number }, { "long_name": "Bedford Ave", "short_name": "Bedford Ave", "types": route }, { "long_name": "New York", "short_name": "New York", "types": [ "locality", "political" ] }, { "long_name": "Brooklyn", "short_name": "Brooklyn", "types": [ "administrative_area_level_3", "political" ] }, { "long_name": "Kings", "short_name": "Kings", "types": [ "administrative_area_level_2", "political" ] }, { "long_name": "New York", "short_name": "NY", "types": [ "administrative_area_level_1", "political" ] }, { "long_name": "United States", "short_name": "US", "types": [ "country", "political" ] }, { "long_name": "11211", "short_name": "11211", "types": postal_code } ], "geometry": { "location": { "lat": 40.7142298, "lng": -73.9614669 }, "location_type": "RANGE_INTERPOLATED", "viewport": { "southwest": { "lat": 40.7110822, "lng": -73.9646145 }, "northeast": { "lat": 40.7173774, "lng": -73.9583193 } } } }, ... Additional results[] ... </code></pre> <p>Now you can parse JSON and get country name city name locality, state etc etc.</p> <p>Or other option is to get just country code.</p> <pre><code>http://ws.geonames.org/countryCode?lat=25.03&amp;lng=67.2 </code></pre> <p>this will return country code PK = Pakistan you can either get the country code list, or </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload