I have to look into this, not sure how to make this work to be honest.
How it now works is that the address you fill in the search field is geocoded and a latlng is returned from the Google Maps API.
Then a calculation is done to find other latlng values ( stores ) that are within that range, and if they are, then they are selected and returned to the user. But adding the shops to each zipcode they service is probably not the cleanest solution.
You really only have 9 or 10 service providers or do you have hunderds? If there are only a few then maybe the quickest way is to simply fill in the zip codes that they service in the extra info field and hide the search bar.
If you then also enable the “load all stores on page load” on the settings page. Then they will see all the service providers and can click on the marker to read the extra info about the other zip code areas they service. Also maybe not the best solution, but not sure how else to solve it now.
Thread Starter
eddt
(@eddt)
Thanks for the ideas here Tijmen. I’ve investigated further and it looks like setting a KML may not be the right approach, because they’re complicated to define in my case (some service providers cover 30-40 zip codes), and I don’t think they can be applied to the geolocation component of Google Maps.
I LOVE this plugin for its simplicity, even though I KNOW what its doing behind the scenes is very complex. It probably just isn’t ideal for this particular need.
But please, keep up the GREAT work you’re doing on this one – and I for one appreciate your commitment to your users!