Created
January 16, 2015 21:11
-
-
Save MiniCodeMonkey/feb49fc2fc37ccc13f1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
-H "Content-Type: application/json" \ | |
-d '{"KeyA": "42370 Bob Hope Drive, Rancho Mirage CA", "KeyB": "1290 Northbrook Court Mall, Northbrook IL", "KeyC": "4410 S Highway 17 92, Casselberry FL", "KeyD": "15000 NE 24th Street, Redmond WA", "KeyE": "17015 Walnut Grove Drive, Morgan Hill CA"}' \ | |
https://api.geocod.io/v1/geocode?api_key=YOUR_API_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"results": { | |
"KeyA": { | |
"query": "42370 Bob Hope Drive, Rancho Mirage CA", | |
"response": { | |
"input": { | |
"address_components": { | |
"number": "42370", | |
"street": "Bob Hope", | |
"suffix": "Dr", | |
"formatted_street": "Bob Hope Dr", | |
"city": "Rancho Mirage", | |
"state": "CA" | |
}, | |
"formatted_address": "42370 Bob Hope Dr, Rancho Mirage, CA" | |
}, | |
"results": [ | |
{ | |
"address_components": { | |
"number": "42370", | |
"street": "Bob Hope", | |
"suffix": "Dr", | |
"formatted_street": "Bob Hope Dr", | |
"city": "Rancho Mirage", | |
"county": "Riverside County", | |
"state": "CA", | |
"zip": "92270" | |
}, | |
"formatted_address": "42370 Bob Hope Dr, Rancho Mirage, CA 92270", | |
"location": { | |
"lat": 33.738987255507, | |
"lng": -116.40833849559 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"number": "42370", | |
"street": "Bob Hope", | |
"suffix": "Dr", | |
"formatted_street": "Bob Hope Dr", | |
"city": "Rancho Mirage", | |
"county": "Riverside County", | |
"state": "CA", | |
"zip": "92270" | |
}, | |
"formatted_address": "42370 Bob Hope Dr, Rancho Mirage, CA 92270", | |
"location": { | |
"lat": 33.738980796909, | |
"lng": -116.40833917329 | |
}, | |
"accuracy": 0.8, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
} | |
] | |
} | |
}, | |
"KeyB": { | |
"query": "1290 Northbrook Court Mall, Northbrook IL", | |
"response": { | |
"input": { | |
"address_components": { | |
"number": "1290", | |
"street": "Northbrook Court Mall", | |
"formatted_street": "Northbrook Court Mall", | |
"city": "Northbrook", | |
"state": "IL" | |
}, | |
"formatted_address": "1290 Northbrook Court Mall, Northbrook, IL" | |
}, | |
"results": [ | |
{ | |
"address_components": { | |
"number": "1290", | |
"street": "Northbrook Court Mall", | |
"formatted_street": "Northbrook Court Mall", | |
"city": "Northbrook", | |
"county": "Cook County", | |
"state": "IL", | |
"zip": "60062" | |
}, | |
"formatted_address": "1290 Northbrook Court Mall, Northbrook, IL 60062", | |
"location": { | |
"lat": 42.151809768844, | |
"lng": -87.817129713568 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
} | |
] | |
} | |
}, | |
"KeyC": { | |
"query": "4410 S Highway 17 92, Casselberry FL", | |
"response": { | |
"input": { | |
"address_components": { | |
"number": "4410", | |
"predirectional": "S", | |
"street": "Highway 17 92", | |
"formatted_street": "S Highway 17 92", | |
"city": "Casselberry", | |
"state": "FL" | |
}, | |
"formatted_address": "4410 S Highway 17 92, Casselberry, FL" | |
}, | |
"results": [ | |
{ | |
"address_components": { | |
"formatted_street": "", | |
"city": "Casselberry", | |
"state": "FL", | |
"zip": "32707" | |
}, | |
"formatted_address": "Casselberry, FL 32707", | |
"location": { | |
"lat": 28.661468, | |
"lng": -81.313989 | |
}, | |
"accuracy": 0.33, | |
"accuracy_type": "place", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"formatted_street": "", | |
"city": "Casselberry", | |
"state": "FL", | |
"zip": "32730" | |
}, | |
"formatted_address": "Casselberry, FL 32730", | |
"location": { | |
"lat": 28.651275, | |
"lng": -81.34184 | |
}, | |
"accuracy": 0.33, | |
"accuracy_type": "place", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"formatted_street": "", | |
"city": "Casselberry", | |
"state": "FL", | |
"zip": "32718" | |
}, | |
"formatted_address": "Casselberry, FL 32718", | |
"location": { | |
"lat": 28.744752, | |
"lng": -81.22328 | |
}, | |
"accuracy": 0.33, | |
"accuracy_type": "place", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"formatted_street": "", | |
"city": "Casselberry", | |
"state": "FL", | |
"zip": "32729" | |
}, | |
"formatted_address": "Casselberry, FL 32729", | |
"location": { | |
"lat": 28.677775, | |
"lng": -81.327846 | |
}, | |
"accuracy": 0.23, | |
"accuracy_type": "place", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"formatted_street": "", | |
"city": "Casselberry", | |
"state": "FL", | |
"zip": "32723" | |
}, | |
"formatted_address": "Casselberry, FL 32723", | |
"location": { | |
"lat": 28.677775, | |
"lng": -81.327846 | |
}, | |
"accuracy": 0.23, | |
"accuracy_type": "place", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
} | |
] | |
} | |
}, | |
"KeyD": { | |
"query": "15000 NE 24th Street, Redmond WA", | |
"response": { | |
"input": { | |
"address_components": { | |
"number": "15000", | |
"predirectional": "NE", | |
"street": "24th", | |
"suffix": "St", | |
"formatted_street": "NE 24th St", | |
"city": "Redmond", | |
"state": "WA" | |
}, | |
"formatted_address": "15000 NE 24th St, Redmond, WA" | |
}, | |
"results": [ | |
{ | |
"address_components": { | |
"number": "15000", | |
"predirectional": "NE", | |
"street": "24th", | |
"suffix": "St", | |
"formatted_street": "NE 24th St", | |
"city": "Redmond", | |
"county": "King County", | |
"state": "WA", | |
"zip": "98052" | |
}, | |
"formatted_address": "15000 NE 24th St, Redmond, WA 98052", | |
"location": { | |
"lat": 47.63150504878, | |
"lng": -122.14160607317 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"number": "15000", | |
"predirectional": "NE", | |
"street": "24th", | |
"suffix": "St", | |
"formatted_street": "NE 24th St", | |
"city": "Redmond", | |
"county": "King County", | |
"state": "WA", | |
"zip": "98052" | |
}, | |
"formatted_address": "15000 NE 24th St, Redmond, WA 98052", | |
"location": { | |
"lat": 47.631505158537, | |
"lng": -122.1415948628 | |
}, | |
"accuracy": 0.8, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
} | |
] | |
} | |
}, | |
"KeyE": { | |
"query": "17015 Walnut Grove Drive, Morgan Hill CA", | |
"response": { | |
"input": { | |
"address_components": { | |
"number": "17015", | |
"street": "Walnut Grove", | |
"suffix": "Dr", | |
"formatted_street": "Walnut Grove Dr", | |
"city": "Morgan Hill", | |
"state": "CA" | |
}, | |
"formatted_address": "17015 Walnut Grove Dr, Morgan Hill, CA" | |
}, | |
"results": [ | |
{ | |
"address_components": { | |
"number": "17015", | |
"street": "Walnut Grove", | |
"suffix": "Dr", | |
"formatted_street": "Walnut Grove Dr", | |
"city": "Morganhill", | |
"county": "Santa Clara County", | |
"state": "CA", | |
"zip": "95037" | |
}, | |
"formatted_address": "17015 Walnut Grove Dr, Morganhill, CA 95037", | |
"location": { | |
"lat": 37.134143482759, | |
"lng": -121.63489413793 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"number": "17015", | |
"street": "Walnut Grove", | |
"suffix": "Dr", | |
"formatted_street": "Walnut Grove Dr", | |
"city": "Morganhill", | |
"county": "Santa Clara County", | |
"state": "CA", | |
"zip": "95037" | |
}, | |
"formatted_address": "17015 Walnut Grove Dr, Morganhill, CA 95037", | |
"location": { | |
"lat": 37.142877105263, | |
"lng": -121.64600263158 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"number": "17015", | |
"street": "Walnut Grove", | |
"suffix": "Dr", | |
"formatted_street": "Walnut Grove Dr", | |
"city": "Morganhill", | |
"county": "Santa Clara County", | |
"state": "CA", | |
"zip": "95037" | |
}, | |
"formatted_address": "17015 Walnut Grove Dr, Morganhill, CA 95037", | |
"location": { | |
"lat": 37.131369740741, | |
"lng": -121.63864111111 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"number": "17015", | |
"street": "Walnut Grove", | |
"suffix": "Dr", | |
"formatted_street": "Walnut Grove Dr", | |
"city": "Morganhill", | |
"county": "Santa Clara County", | |
"state": "CA", | |
"zip": "95037" | |
}, | |
"formatted_address": "17015 Walnut Grove Dr, Morganhill, CA 95037", | |
"location": { | |
"lat": 37.143545333333, | |
"lng": -121.65046 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
}, | |
{ | |
"address_components": { | |
"number": "17015", | |
"street": "Walnut Grove", | |
"suffix": "Dr", | |
"formatted_street": "Walnut Grove Dr", | |
"city": "Morganhill", | |
"county": "Santa Clara County", | |
"state": "CA", | |
"zip": "95037" | |
}, | |
"formatted_address": "17015 Walnut Grove Dr, Morganhill, CA 95037", | |
"location": { | |
"lat": 37.148936142857, | |
"lng": -121.68332857143 | |
}, | |
"accuracy": 1, | |
"accuracy_type": "range_interpolation", | |
"source": "TIGER/Line® dataset from the US Census Bureau" | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment