Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZackPlauche opened this issue Aug 29, 2024 · 3 comments
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@ZackPlauche
Copy link

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 ZackPlauche added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Aug 29, 2024
@RavinduTharanga
Copy link

RavinduTharanga commented Nov 8, 2024

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

@emigre459
Copy link

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).

@wescpy
Copy link

wescpy commented Jan 15, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants