Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use the Google geolocating API (try it out on google.com/maps):</p> <p>Input for a Swiss ZIP code for example: CH-9014</p> <p>or a french one: FR-34000</p> <p>or german: de-12101</p> <p>or US: us-90210</p> <p>or canada: ca-J5Z 1A1</p> <p>or china: cn-100000</p> <p>for <a href="http://maps.google.com/maps/api/geocode/json?address=ch-9014&amp;sensor=false" rel="nofollow noreferrer">example</a>:</p> <p>yields</p> <pre><code>{ "status": "OK", "results": [ { "types": [ "postal_code" ], "formatted_address": "9014 St Gallen, Switzerland", "address_components": [ { "long_name": "9014", "short_name": "9014", "types": [ "postal_code" ] }, { "long_name": "St Gallen", "short_name": "St Gallen", "types": [ "locality", "political" ] }, { "long_name": "Sankt Gallen", "short_name": "SG", "types": [ "administrative_area_level_1", "political" ] }, { "long_name": "Switzerland", "short_name": "CH", "types": [ "country", "political" ] } ], "geometry": { "location": { "lat": 47.4082855, "lng": 9.3323890 }, "location_type": "APPROXIMATE", "viewport": { "southwest": { "lat": 47.3991076, "lng": 9.3180504 }, "northeast": { "lat": 47.4199564, "lng": 9.3543340 } }, "bounds": { "southwest": { "lat": 47.3991076, "lng": 9.3180504 }, "northeast": { "lat": 47.4199564, "lng": 9.3543340 } } } } ] } </code></pre> <p>So the swiss ZIP code 9014 corresponds appx. to this location:</p> <pre><code>"lat": 47.4082855, "lng": 9.3323890 </code></pre> <p>See my answer on the geolocating API here:<br /> <a href="https://stackoverflow.com/questions/3534142/how-to-get-glatlng-object-from-address-string-in-advance-in-google-maps">How to get GLatLng object from address string in advance in google maps?</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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