forked from RocketMap/RocketMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Google Maps API Key
Justin J. Novack edited this page Jul 27, 2016
·
1 revision
##How to get your own Google Maps key and use it for this project This project uses Google Maps. There's one map coupled with the project, but as it gets more popular we'll definitely hit the rate-limit making the map unusable.
- Go to Google API Console
- If it's the first time, click 'Next' on a bunch of pop-ups or just click somewhere where the pop-ups aren't
- Create Credentials
- Select a project: Create a project
- Project name: Anything you want
- Yes/No for email
- Yes to agree to ToS
- Click create.
-
Get your API Key
- Click on Credentials again
- Click Create --> API
- Choose 'Browser Key'
- Click 'Create' and then copy the API Key somewhere
-
Enable two Google Maps APIs
- Google Maps Javascript API - Enables Displaying of Map
- Click on 'Library'
- Click on Google Maps Javascript API
- Click 'ENABLE'
- Google Places API Web Service - Enables Location Searching
- Click on 'Library'
- Type 'Places' into the search box ' Search all 100+ APIs'
- Choose Google Places API Web Service
- Click 'ENABLE'
- Google Maps Javascript API - Enables Displaying of Map
- Navigate to your pokemon map directory, and inside the config folder you will find credentials.json.
- Add your previously created Google API key in this file, save it, and re-run the server! it should be working now! If you see an error, make sure you actually enabled the Javascript API in Step 5.