Let's say we have two addresses that are provided. I grabbed two random ones from the web below:
# Google headquarters:
google_lat = 37.422131
google_lon = -122.084801
# Apple headquarters
apple_lat = 37.33467267707233
apple_lon = -122.0089722675975
Now, lets say I'd like to interpolate a series of points between these two addresses. Maybe for starters a simple linear interpolation (or one that takes into account the spherical nature of the Earth) would work. In practice, a road route like provided via Google Maps would work if I could obtain an array of lat/longs for every n miles between each point. Might there be a REST API to obtain points between two addresses?
Just to get started on some ideas, how could I start approaching a task like this if I cannot go the API approach above? Bare minimum I would want is an array of lat/longs between each address with the points therein.
An example in Python would be nice but a language agnostic discussion is welcome too.