microbiomedata / submission-schema

https://microbiomedata.github.io/submission-schema/
MIT License
1 stars 1 forks source link

geocode geo_loc_names from MongoDB prod and from SubmissionPortal ("prod"?) #151

Open turbomam opened 9 months ago

turbomam commented 9 months ago

Google geolocation price: https://developers.google.com/maps/documentation/geolocation/usage-and-billing

0.005 USD per each (5.00 USD per 1000) @ up to 100,000 per month

As of today, there's about 350 unique normalized addresses in MongoDB prod and SubmissionPortal prod

So about $1.75 to process the whole set

up-to-date geocodings are saved as:

https://github.com/microbiomedata/submission-schema/blob/issue-151-geocoding/geocoded_normalized_geo_loc_names.yaml


turbomam commented 9 months ago

add reverse geocoding?

turbomam commented 9 months ago

https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=YOUR_API_KEY

turbomam commented 9 months ago

https://maps.googleapis.com/maps/api/elevation/json?locations=39.7391536%2C-104.9847034&key=YOUR_API_KEY

turbomam commented 9 months ago

why does one endpoint recommend using a bare , and he other recommends encoding as '%2C' ?

https://www.asciitable.com/

, does work in both cases