kevkanaan / PureSphere

Data engineering project
Apache License 2.0
1 stars 0 forks source link

Transform literal addresses to GPS coordinates #11

Open JorickPepin opened 9 months ago

JorickPepin commented 9 months ago

We can use https://geocode.maps.co/, it has a rate limit of 2 requests per second.

Usage

Pass the address string like https://geocode.maps.co/search?q=555+5th+Ave+New+York+NY+10017+US

Or provide parameters like https://geocode.maps.co/search?street=555+5th+Ave&city=New+York&state=NY&postalcode=10017&country=US

Available parameters:

street=<housenumber> <streetname>
city=<city>
county=<county>
state=<state>
country=<country>
postalcode=<postalcode>
Tom-DELAPORTE commented 9 months ago

I guess you can use the geopy to convert the address to latitude/longitude.

Have a look: https://pypi.org/project/geopy/