Skip to content

Instantly share code, notes, and snippets.

@hackenbruder
Last active April 26, 2017 03:36
Show Gist options
  • Save hackenbruder/522c7236267fc5d1443eef6480599c15 to your computer and use it in GitHub Desktop.
Save hackenbruder/522c7236267fc5d1443eef6480599c15 to your computer and use it in GitHub Desktop.
govdata v1 address search geo response
{
"type":410,
"total":10,
"pages":1,
"data":[
{
"address_id":21700184,
"address_text":"Letenská 525/15, Malá Strana, 11800 Praha 1",
"lat":50.0891504200274,
"lon":14.4071951833973,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":0
},
{
"address_id":21700711,
"address_text":"Letenská 605/17, Malá Strana, 11800 Praha 1",
"lat":50.0890159331414,
"lon":14.4071084176644,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":16.2029767632046
},
{
"address_id":21700176,
"address_text":"Letenská 525/13, Malá Strana, 11800 Praha 1",
"lat":50.0893312018896,
"lon":14.4074269070626,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":26.0559215302962
},
{
"address_id":21700729,
"address_text":"Letenská 606/19, Malá Strana, 11800 Praha 1",
"lat":50.0888865988695,
"lon":14.406970291438,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":33.4740626005219
},
{
"address_id":21700702,
"address_text":"Letenská 594/11, Malá Strana, 11800 Praha 1",
"lat":50.0894955747503,
"lon":14.4076493007481,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":50.2818493197828
},
{
"address_id":21694346,
"address_text":"Letenská 33/12, Malá Strana, 11800 Praha 1",
"lat":50.0890588086694,
"lon":14.4064994600567,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":50.725970674305
},
{
"address_id":21694338,
"address_text":"Letenská 32/14, Malá Strana, 11800 Praha 1",
"lat":50.0888922425638,
"lon":14.4065910714148,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":51.8429258039852
},
{
"address_id":21694486,
"address_text":"Letenská 43/21, Malá Strana, 11800 Praha 1",
"lat":50.088679350481,
"lon":14.4067155417885,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":62.6375425703847
},
{
"address_id":21700699,
"address_text":"Letenská 593/9, Malá Strana, 11800 Praha 1",
"lat":50.0896094404233,
"lon":14.4077837876341,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":66.1689171938541
},
{
"address_id":21694311,
"address_text":"Letenská 29/18, Malá Strana, 11800 Praha 1",
"lat":50.0887376763348,
"lon":14.4063724118448,
"valid_at":1386720000,
"created_at":1492323873,
"updated_at":1492581619,
"distance":74.5946729410436
}
]
}
#perform CURL request to get above response
curl -H 'X-Api-Key: ZX1Ap4RUDY2VisBOu2P0e4sEvh2LhWh4Cx8lqoO6' 'https://api.govdata.cz/v1/demo/search/addresses/geo?lat=50.08915042002743&lon=14.407195183397297&radius=100&page=1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment