google-maps-services-python icon indicating copy to clipboard operation
google-maps-services-python copied to clipboard

Where are the docs? The current example on the README.md doesn't work for me.

Open ZackPlauche opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I want to see how to use the API... current docs don't work.

ZackPlauche avatar Aug 29 '24 11:08 ZackPlauche

Did you try this? https://pypi.org/project/googlemaps/

RavinduTharanga avatar Nov 08 '24 01:11 RavinduTharanga

Yeah unfortunately I'm also finding the straightforward example for routing_v2 errors out when you try to run it. Seems to be missing a number of args and kwargs to make it work (and I haven't been able to suss out exactly what's missing yet or I'd be posting an update to it).

emigre459 avatar Jan 10 '25 17:01 emigre459

The root cause is that the current Google Maps client library is for the previous generation of Maps (Web Services) APIs, and the specific code sample that the OP is running only works with the new auto-generated client libraries for which there's no current documentation because it's so new. The team has yet to be able to document their use publicly.

The new Routes APIs don't work with the current/older client libs. Google has stated that none of the newer APIs will be supported by that library. I don't know if the Maps team has linked to the new docs for the Routes v2 API yet, but you can find them here. If you set it up, the code sample should run. Good luck!

ps. I'm slowly documenting how to use Maps APIs from my tech blog and plan on getting to the new client libraries "soon," so keep an out there or to learn how to use other Google APIs/platforms (from Python or Node.js).

wescpy avatar Jan 15 '25 23:01 wescpy