Google Geolocation API , Where you live?

Api Guide is available on http://code.google.com/intl/fr-FR/apis/gears/geolocation_network_protocol.html
Check out the below example:Thanks to pterjan’s diary (http://fasmz.org/~pterjan/blog/?date=20100813#p01)
$ curl -X POST -d ‘{
  “version”: “1.1.0”,
  “host”: “perdu.com”,
  “request_address”: true,
  “address_language”: “en_GB”,
  “wifi_towers”: [
    {
      “mac_address”: “56:7a:e8:68:15:4B”
    }
  ]
}’ http://www.google.com/loc/json
{“location”:{“latitude”:48.868646,”longitude”:2.355392,”address”:{
“country”:”France”,”country_code”:”FR”,”region”:”Ile-de-France”,”county”:”Paris”,
“city”:”Paris”,”street”:”Rue Sainte-Apolline”,”street_number”:”2″,”postal_code”:”75003″
},”accuracy”:150.0},”access_token”:”2:yWOkYM4kI79VH1Bj:cvMZFkJhXSflywZB”}

Leave a Reply