I simply want to use Google Directions API to get the route/directions from point A to point B, given the lat/long coordinates of A and B. And I want to do this in Python.
If I do something like that, it works:
import googlemaps
gmaps = googlemaps.Client(key='mykey')
start = 'Constitution Ave NW & 10th St NW, Washington, DC'
end = 'Independence and 6th SW, Washington, DC 20024, USA'
dirs = gmaps.directions(start, end)
However, this is not what I want since I've only got lat/long coordinates and not the addresses. I know that I can convert lat/long to addresses using reverse_geocode(), but this is not what I want since that would be calling the Geocoding API on top of the Directions API. I haven't found a way to use gmaps.directions() on lat/long directly.
So my question is simple: Can I use the Directions API alone to get directions from point A to point B when I only have lat/long coordinates for A and B? Or am I obliged to use the Geocoding API on top of it?
Thank you for your time.