murrayds / sci-mobility-emb

Embedding of scientific mobility across institutions, cities, regions, and countries
4 stars 0 forks source link

Regional lookup #22

Closed murrayds closed 4 years ago

murrayds commented 4 years ago

Satisfies issue #5.

Rules to perform reverse geocoding on organizational coordinates to lookup regional information (i.e., state, province, etc.). Reverse geocoding is implemented using the free tier of LocationIQ, a commercial service built on the Nominatim geocoding engine. An API key is required to perform the reverse geocoding, and must be saged in a plain text file at workflow/LOCATIONIQ_API_KEY. Due to rate limits in the free tier, we are limited to only about 1 request per second and so it takes a long time to perform everything, so avoid if possible.

The organization lookup table with the states can be found at SME-dropbox/Data/Additional/institution_lookup_with_states.txt