I have a CSV of addresses
Name,addess,city,state,zip
I want to use a webservice to get coordinates
Name,addess,city,state,zip,latitude,longitude,accuracy
My web service uses this format with json output
https://mywebservice/geocode?q=ADDRESS+CITY+STATE+ZIP&apikey=myapikey
https://api.geocod.io/v1.6/geocode?q=20%20W%2034th%20St,%20New%20York,%20NY%2010001&api_key=myapikey
here’s a sample output
{“input”:{“address_components”:{“number”:“20”,“predirectional”:“W”,“street”:“34th”,“suffix”:“St”,“formatted_street”:“W 34th St”,“city”:“New York”,“state”:“NY”,“zip”:“10001”,“country”:“US”},“formatted_address”:“20 W 34th St, New York, NY 10001”},“results”:[{“address_components”:{“number”:“20”,“predirectional”:“W”,“street”:“34th”,“suffix”:“St”,“formatted_street”:“W 34th St”,“city”:“New York”,“county”:“New York County”,“state”:“NY”,“zip”:“10001”,“country”:“US”},“formatted_address”:“20 W 34th St, New York, NY 10001”,“location”:{“lat”:40.748557,“lng”:-73.985089},“accuracy”:1,“accuracy_type”:“range_interpolation”,“source”:“TIGER/Line\u00ae dataset from the US Census Bureau”}
Any help on the steps required to get this working to add coordinates to all records in a csv file?
I use https://www.geocod.io/
They offer free API key and 2500 free lookups a day
Thanks in advance