bjorn2404 / jQuery-Store-Locator-Plugin

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

json location without lat and long, but only city #213

Closed itajackass closed 6 years ago

itajackass commented 6 years ago

PLugin works very well, but i've a json file where some locations have only city set... and empty LAT and LONG.... These places then are placed by defaut in the middle of the world into the sea!!! Is there a way to tell plugin to calculare distance by city if lat and long are empty for some locations?

bjorn2404 commented 6 years ago

No, the locations need to be geocoded. The Geocoding API has limits of 50/second and 2,500 per day. If you are geocoding locations on the fly you are much more likely to run into the limits.