Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Expired Google Maps API key on the visualizer #467

Open
gcamp opened this issue Mar 5, 2019 · 6 comments
Open

Expired Google Maps API key on the visualizer #467

gcamp opened this issue Mar 5, 2019 · 6 comments
Labels

Comments

@gcamp
Copy link

gcamp commented Mar 5, 2019

The visualizer is not working anymore because the API_KEY for Google Maps is expired.

Error is

[Error] Google Maps JavaScript API error: ExpiredKeyMapError
https://developers.google.com/maps/documentation/javascript/error-messages#expired-key-map-error
	Lc (js:51:134)
	(anonymous function) (common.js:73:365)
	(anonymous function) (common.js:139:167)
	c (common.js:67:86)
	Global Code (AuthenticationService.Authenticate:1)

@RachM maybe something you can look at?

@EnglishMffn
Copy link

I'm experiencing the exact same error

@answerquest
Copy link

Hi I'd started seeing the problem from a couple days ago. Found out that passing in our own key in command line doesn't actually work : It was still using a key hard-coded in (And we were all using somebody else's key this entire time!!).

So if you have your own google maps API key (I'm not sure about usage limits and all but mine works for now), here's what to do:

  • Open gtfsscheduleviewer/files/index.html code
  • Find the <script.. tag for google maps api.
  • Change the ending part of src after ?key= : put in your API key. And you can erase out the sensor=true part too at the end of that string.

@EnglishMffn
Copy link

@answerquest Worked like a charm. Much appreciated!

@answerquest
Copy link

The sample commands given at the wiki are misleading : https://github.com/google/transitfeed/wiki/ScheduleViewer#running-from-source

It might help look into that or to try and make the --key functionality work.

@barbeau barbeau added the bug label Mar 5, 2019
@russellhoff
Copy link

Solve the bug, please.... Thank you!!

@rburhum
Copy link

rburhum commented Apr 10, 2019

temporary workaround worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants