× Welcome to the Sysgen Media forum!

Tell us and our members who you are.
We welcome all new members and hope to see you around a lot!

Error: The Geolocation service failed.

6 years 4 months ago #3355 by webarts
hello ,

we are using the latest version of store locator and we face 2 issues.



www.zorbas.com.cy/en/our-bakeries

1. the geo locations its not working we get error Error: The Geolocation service failed.

drive.google.com/file/d/0B_4g4SjHdTypTk9...WM/view?usp=drivesdk

2. the coordination it looks that are not work properly for example when you click get directions you are not able to see location because it search by the address instead of cordinators drive.google.com/file/d/0B_4g4SjHdTypLVQ...lU/view?usp=drivesdk

drive.google.com/file/d/0B_4g4SjHdTypVUI...28/view?usp=drivesdk


at the back end we set the manual entry option on location entry .


please advice soonest possible to fix this issue

Please Log in to join the conversation.

More
6 years 4 months ago #3356 by sysgenmedia
Replied by sysgenmedia on topic Error: The Geolocation service failed.
Hi!

1. You have uncovered a very new issue related to Geolocation via Google Services as of April 20, 2016. Google now requires sites that use Geolocation services to be served over HTTPS.

As per Google:

Starting with Chrome 50, Chrome no longer supports obtaining the user’s location using the HTML5 Geolocation API from pages delivered by non-secure connections. This means that the page that’s making the Geolocation API call must be served from a secure context such as HTTPS.


2. We currently only support directions from the location's address. However you can change this in com_storelocator/assets/map.js

On line 503, change:
html += '<div class="infoloc-directions"><a href="http://maps.google.com/maps?daddr=' +  encodeData(getNodeText(node, 'address')) 	
					+ '&amp;saddr=' + encodeData(position) + '" target="_blank">' + GET_DIRECTIONS + '</a></div>';
to:
destination = latlng.lat() + ',' + latlng.lng();
html += '<div class="infoloc-directions"><a href="http://maps.google.com/maps?daddr=' +  encodeData(destination) 	
					+ '&amp;saddr=' + encodeData(position) + '" target="_blank">' + GET_DIRECTIONS + '</a></div>';

Please Log in to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #3459 by hannov
Replied by hannov on topic Error: The Geolocation service failed.
Will this use the Lat and Lon value to find directions now?
Last edit: 5 years 10 months ago by hannov. Reason: Misread post

Please Log in to join the conversation.

More
5 years 9 months ago #3469 by sysgenmedia
Replied by sysgenmedia on topic Error: The Geolocation service failed.
yes it should

Please Log in to join the conversation.

More