Forum Replies Created
-
AuthorPosts
-
MarcoParticipant
Hi Cici,
real sorry, that was dumb … Here some more details.
Env:
see attachment
Test cases:
1) https://sunkost.no/finn-butikk/
IMPORTANT: do not accept geolocation here, otherwise map goes to wherever you are.
This is the set up WITHOUT centering the map at Oslo, leaving the center blank (which defaults to Norway, lat 60.472024 – lon 8.468946). As you can see it loads with the centre of Norway. And if you type 0170 (OSLO zip code), then you get to Oslo area OK with the shops there. But if you type 2020, which is my postcode (20km north-east of Oslo), then you get to a completely different location to the east coast of Norway, 1000 KM away. 2020 does not correspond to any store location, while 0170 does. So I guess the SLP defaults back to center (Norway) when zip code is unknown, and tries to find the closes shops there, zooming the map accordingly.
2) http://sunkost.staging.wpengine.com/finn-butikk/
(should be no geolocation here, since staging site is not under https, but in case deny as well)
This is the set up with map centered at Oslo (lat 59.9138688 – lon 10.7522454). As you can see the map load correctly around the Olso area. And if you type 0170, it stays there. but if I type 2020, it goes to Kansas City. So in this case SLP does not takes into consideration my Olso map center when an unknown zip is entered.
—
FYI, the intended behaviour for us is to center the map at OSLO, so that if user types an unknown zip code (as 2020), the map defaults to Olso, which is far better than the middle of Norway ,-)
Thanks for help
m
- This reply was modified 5 years, 10 months ago by Marco.
Attachments:
You must be logged in to view attached files.September 7, 2016 at 2:04 PM in reply to: Restrict search to a country, to avoid postcode mismatch #43047MarcoParticipantHi Cici,
thanks for reply, understand all of your points. I tried this locator plugin:
and it provided the “stay in Norway” feature I needed, even in the absence of results (or at least it did seem to do so based on the tests we run). So we switched to that ;-(
Thanks again
M
September 1, 2016 at 1:25 AM in reply to: Restrict search to a country, to avoid postcode mismatch #42960MarcoParticipantHi Cici,
first of all thanks a million for your extremely thorough reply, I really appreciate the time and effort.
I actually had already the Map Domain set at Norway, and to be honest, that should be enough to have the results ALWAYS shown a Norwegian location, regardless whether I have results or not. I tried to append ‘Norway’ to the ZIP code, and if there are no results the map is still in Norway (an improvement), but it shows the initial location as per my settings (Oslo), which is truly bad usability.
I do not believe I should spend money for some Premium stuff in order to have the basic functionality in place, that is:
1) fully follow my setting about the map domain
2) if no results, show the map location associated with the entered ZIP code without any location markers, NOT Oslo or whatever the initial location is
The above two are just basic functionality that should be part of the default plugin, not of some 200$ premium service.
Will look into other solutions, since I cannot expect Joe User to be happy to see puzzling world-wide maps when he has no locations nearby his postcode, or understand why suddenly his postcode is associated with Oslo…
TY
M
-
AuthorPosts