bjorn2404 / jQuery-Store-Locator-Plugin

A store locator plugin using Google Maps API version 3
MIT License
495 stars 235 forks source link

Map coordinates doesn't match with Google Maps #177

Closed ghost closed 7 years ago

ghost commented 7 years ago

When I need coordinates I open google maps, then search for my location and when I want to export it as a link I can find coordinates, but If I set that coordinates in this plugin the final location is different as you can see in screenshot ( look at "La Bifora" & the sea as a reference for the marker point) schermata 2017-05-16 alle 18 29 45 schermata 2017-05-16 alle 18 30 51 schermata 2017-05-16 alle 18 31 01

bjorn2404 commented 7 years ago

@rriky92 The longitude in your example is not as precise as the data that's returned from the Goole Maps Geocoding API. I'd recommend just loading the address in the URL with your Maps API key to get the coordinates instead. I'm using the Google Maps API for everything, so there's no reason it would be different from the data the API returns.

https://developers.google.com/maps/documentation/geocoding/intro#GeocodingResponses