How to lookup longitude/latitude from address string?

question
web

#1

How can we lookup an approximate longitude/latitude for a location in the globe given an arbitrary address string (e.g. “San Francisco, CA”)?


#2

You might check to see whether GeoIP.jl can do what you need. It’s primarily used for IP address geolocation, but you might be able to make it work.


#3

Are the addresses in a consistent format like city, state_abbreviation? If not, your best bet might be the google maps API.


#4

@bramtayl that is the main issue I have, these are arbitrary addresses. I was considering Google maps API, but was told they have strong restrictions about the number of queries per time, unless you pay for it, you cannot query quickly in a loop.


#5

How many addresses are there?


#6

I am guessing 1500, more or less.


#7

I think you should be good. From googling it looks like the limit per day is 2500


#8

I will definitely give it a try, thanks.