saml-dev / MMM-Traffic

This a module for the MagicMirror. It displays travel time between two locations, using the Mapbox directions API to factor in current traffic conditions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Project is not authorized error

dabnet795 opened this issue · comments

Hello, I am receiving the following error. I have Google Maps module loaded and working fine with the same API key. Any thoughts

status: 'REQUEST_DENIED' }
ERROR: Google Maps API returned an error message:
{ error_message: 'This API project is not authorized to use this API.',
routes: [],

The Mirror displays "Loading commute..." but never loads

I am having the same problem :(

You need to turn on the directions api, which is a subset api to maps. Additionally, you will need to set up a google cloud billing account to activate your project you created to get your api key.

@dabnet795 @FaMiFisH can either of you let me know if @gschmall 's answer solved your problem? I am going to dig back into this project this weekend. Sorry for the delayed response.

I've confirmed this is due to not giving the API key proper permissions for the directions API. Closing this issue.