Population data gathering - mgp4/aws-hackathon-2015 GitHub Wiki

Google geocoding API

curl -i -X GET "https://maps.googleapis.com/maps/api/geocode/json?address=Praha+2"
{
   "results" : [
      {
         "address_components" : [
            {
               "long_name" : "Prague 2",
               "short_name" : "Prague 2",
               "types" : [ "sublocality_level_1", "sublocality", "political" ]
            },
            {
               "long_name" : "Prague",
               "short_name" : "Prague",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Hlavní město Praha",
               "short_name" : "Hlavní město Praha",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "Hlavní město Praha",
               "short_name" : "Hlavní město Praha",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Czech Republic",
               "short_name" : "CZ",
               "types" : [ "country", "political" ]
            }
         ],
         "formatted_address" : "Prague 2, Czech Republic",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 50.08661009999999,
                  "lng" : 14.4493208
               },
               "southwest" : {
                  "lat" : 50.0609377,
                  "lng" : 14.4115195
               }
            },
            "location" : {
               "lat" : 50.0750689,
               "lng" : 14.4350772
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : 50.08661009999999,
                  "lng" : 14.4493208
               },
               "southwest" : {
                  "lat" : 50.0609377,
                  "lng" : 14.4115195
               }
            }
         },
         "place_id" : "ChIJlZ3t4ouUC0cRALMVZg-vAAU",
         "types" : [ "sublocality_level_1", "sublocality", "political" ]
      }
   ],
   "status" : "OK"
}