mhudecheck / revgeo

Reverse Geocoding in R with Google Maps API and Photon API
GNU General Public License v3.0
23 stars 7 forks source link

Photon changed data structure #10

Closed marinereilly closed 4 years ago

marinereilly commented 4 years ago

It looks like photon changed the data structure at some point.

house number, county, and zip code don't exist anymore street is now name

Here's an example point with the new data structure: {"features":[{"geometry":{"coordinates":[-77.76104,37.199408],"type":"Point"},"type":"Feature","properties":{"osm_id":19777861,"osm_type":"W","extent":[-77.763207,37.207363,-77.757497,37.192277],"country":"United States of America","osm_key":"highway","city":"Ammon","osm_value":"tertiary","name":"Cobbs Road","state":"Virginia"}}],"type":"FeatureCollection"}

mhudecheck commented 4 years ago

Thanks for the info. It looks like they also changed their API end point. This project is on the back burner for now, but when I can I'll update the code for the new structure.