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

GTFS schedule viewer #510

Open
minna03 opened this issue Feb 26, 2020 · 1 comment
Open

GTFS schedule viewer #510

minna03 opened this issue Feb 26, 2020 · 1 comment

Comments

@minna03
Copy link

minna03 commented Feb 26, 2020

I'd like to use the schedule viewer application to visualize the GTFS data that I have. But I get the message as below after I copy the http://localhost:8765 in to my browser. Please help me to fix the problem.

Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

@cemtheman
Copy link

Hello,
You should have Google Maps API key to display the map.

  1. Get an API key from Google Cloud Platform
  2. Enable Maps JavaScript API from Google Cloud console
  3. Restrict your API key for http requests and Maps JavaScript API
  4. Edit index.html in ../gtfsscheduleviewer/files
<script type="text/javascript" 
src="https://maps.googleapis.com/maps/api/js?key="[PASTE_YOUR_API_KEY_HERE]">
    </script>
  1. Save index.html, run scheduleviewer to see if it works.

Hope above solves the problem.

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

No branches or pull requests

2 participants