ResolvedMap shortcode
- This topic has 4 replies, 2 voices, and was last updated 3 years, 2 months ago by
FootstepsDesign.
- AuthorPosts
- July 7, 2020 at 12:47 pm #24053
FootstepsDesign
ParticipantHi I have been working with the map short-code for a couple of days and I have a two of issues. (i have added the API key)
The directions don’t work and shows a couple of JS errors:
Directions Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key js:70:449
me https://maps.googleapis.com/maps/api/js?key=AIzaSyBtLZfInKAJEoM2WU0LzvocC9tmkBGo3R4&sensor=false&ver=5.4.2:70
QP https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:3
WP https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:8
YP https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:9
TP https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:5
c https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/common.js:69
<anonymous> https://maps.googleapis.com/maps/api/js/DirectionsService.Route?5m2&1m1&2sco6 4ts&5m4&1m3&1m2&1d51.894328&2d0.89923&6e0&12sen-GB&23e1&callback=_xdc_._twb9eo&key=AIzaSyBtLZfInKAJEoM2WU0LzvocC9tmkBGo3R4&token=36195:1Object { message: “DIRECTIONS_ROUTE: REQUEST_DENIED: There was an issue performing a Directions request.”, stack: “GP@https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:1:82\nIP@https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:1:314\nXP/<@https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:9:118\nTP/<@https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/directions.js:5:266\nc@https://maps.googleapis.com/maps-api-v3/api/js/41/4/intl/en_gb/common.js:69:84\n@https://maps.googleapis.com/maps/api/js/DirectionsService.Route?5m2&1m1&2sco6%204ts&5m4&1m3&1m2&1d51.894328&2d0.89923&6e0&12sen-GB&23e1&callback=_xdc_._twb9eo&key=AIzaSyBtLZfInKAJEoM2WU0LzvocC9tmkBGo3R4&token=36195:1:28\n”, name: “MapsRequestError”, endpoint: “DIRECTIONS_ROUTE”, code: “REQUEST_DENIED” }
js:70:449The pin is in the wrong place no matter what i do its shifted ups and to the left. It is still centred on the whole amp bu the centre is wrong. FYI: I did try using the https://www.latlong.net/ link to get the lon lat coordinates, but this webpage doesn’t work today (it did yesterday) so I’m using https://www.doogal.co.uk/LatLong.php
July 7, 2020 at 12:51 pm #24217Althemist
KeymasterHi FootstepsDesign,
1. The error is pretty self-explanatory. Your API key is for a project not configured to use the directions services. You’d need to properly set your API project settings.
2. It doesn’t really matter which lat/long service you use. If the coordinates are correct it should be OK. Check if you copied all digits. May be you missed some characters in the latitude and longitude numbers?
Regards,
DimitarJuly 7, 2020 at 1:10 pm #24220FootstepsDesign
ParticipantThanks Dimitar
1. I will check the API settings.
2. I have triple checked the coordinates and I am sure that I have copied the correct numbers. Is there any other test the I can perform please?
July 8, 2020 at 9:08 am #24243Althemist
KeymasterAre you checking with enough zoom when generating the coordinates? May be it looks OK when you generate them, because it’s not zoomed close enough and the error becomes visible on the site with more zoom? Basically, we never had such problem reported before and we use the same system on all our themes (more than 15 000 users).
July 8, 2020 at 12:01 pm #24269FootstepsDesign
ParticipantThanks for the reply, I turns out that the https://www.doogal.co.uk/LatLong.php was not accurate enough. However https://www.latlong.net/ is now working and that seems to have given the correct coordinates. Sorry for the concusion.
- AuthorPosts
You must be logged in and have valid license to reply to this topic.