No route could be found between the origin and destination.

Phoca Maps - displaying maps in Joomla! CMS
birdwaves
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Jun 2014, 20:41

No route could be found between the origin and destination.

Post by birdwaves »

I've had problems getting google maps to work using other joomla plugins on my site since we enabled SSL. Then I found this Phoca component, and I've made a lot more progress. However I can't get the Directions service working.
I get the error: "No route could be found between the origin and destination."

Javascript console reports:

"Directions Service: This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/a ... d?project=_ For more information on authentication and Google Maps Javascript API services please see: https://developers.google.com/maps/docu ... et-api-key"

In another post here, someone had this error and fixed it:
"Update:
I did some more research and trouble shooting. I enabled JAVA logging and noticed that the API was failing at authenticating at google side to get the route.
I then enable the option to allow routes to be granted from the browser.
Once I did that, I was able to get the routes. Awesome. I hope this helps others for the same problem."

Where is this option to "allow routes to be granted from the browser"?

Thanks for your help.

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: No route could be found between the origin and destination.

Post by christine »

Hi birdwaves,

See here please:
https://www.phoca.cz/documents/53-phoca ... ps-api-key
http://www.reisefotografien.eu/phoca-be ... -erstellen

"No route could be found between the origin and destination." you have to activate also: Google Maps Directions API

Kind regards, Christine
birdwaves
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Jun 2014, 20:41

Re: No route could be found between the origin and destination.

Post by birdwaves »

Excellent! It's fixed now.
I didn't realize there were other Google Maps API's to enable, besides the Javascript API.
Thanks for your help!
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: No route could be found between the origin and destination.

Post by christine »

Hi birdwaves,

Thank you for your feedback!

Kind regards, Christine
Post Reply