Skip to content
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

Google Maps, createSession fails #64

Open
cognmbs opened this issue Oct 12, 2023 · 1 comment
Open

Google Maps, createSession fails #64

cognmbs opened this issue Oct 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cognmbs
Copy link

cognmbs commented Oct 12, 2023

Hello, first I would like to thank you for your work.

(everything working perfect with BingMapsProvider).

I'm having issuse to fetch google maps tiles
this is my code:
const googleProvider = new Geo.GoogleMapsProvider(GOOGLE_MAPS_API_KEY).

I saw the createSession fails, the google maps API key is valid with tiles enable.
Mabye I'm doing something worng? thanks for any help

** according to google maps docs: https://developers.google.com/maps/documentation/tile/roadmap
geo three createSession fetch:
const address = 'https://www.googleapis.com/tile/v1/createSession?key=' + this.apiToken;

what google shows:
"https://tile.googleapis.com/v1/createSession?key=YOUR_API_KEY"

curl -X POST -d '{
"mapType": "roadmap",
"language": "en-US",
"region": "US"
}'
-H 'Content-Type: application/json'
"https://tile.googleapis.com/v1/createSession?key=YOUR_API_KEY"

I think they have change the API address, I succeeded to fetch it from my browser and create session with the new adress

@cognmbs cognmbs changed the title Google Maps, createSession 403 Google Maps, createSession fails Oct 12, 2023
@tentone
Copy link
Owner

tentone commented Oct 30, 2023

Hello

I have to validate this with my account, its possible that the API has changed in the meanwhile since i created the provider code.

@tentone tentone added the bug Something isn't working label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants