As many have made comments about the sexy new map – it makes sense – but is not ” idiot proof”
This could be considered a bug or feature request call it what you want….
As we all know the average web user is not the sharpest knife in the drawer, and if you let people up to their own devices will F@&k you up every chance they get.
This is just my 2 bits on a method you could use on the maps, and also makes it easier for data uploading… and we all want simple and easy data uploads.
A standard format of address should be used:
Address line 1
Address line 2
City, State/Prov/Region, Zip/Post Code
Obviously if the directory is for a specific country this could be set in admin
Once the user enters their data as above a Locate On Map button would be pressed and the map displayed at a standard fix zoom level (again specified by admin panel).
When the user presses Locate On Map button you would in the background write to the db as you currently do. but add a few additional fields automagically – Address line 1, Address line 2, City, State/Prov/Region, Zip/Post Code, Country and most importantly a field called location_search containing city,state/prov and zip/post code..
This location_search field would be perfect for searching for a business by city or zip…. and if you wanted to make it sexy ajax/jquery to auto fill city name when searching.
This concept does two important things…. one removes the user from showing his address at the wrong location or at a zoom level that is not informative to a user – ie: zoomed in too close as not to see relationship of the area. Also it allows to easily add the proper address to the listing with correct format.
BUG IN CURRENT CODE: in field map_address_3 you are not passing the street number so Google street map is not accurate and placing the pointer in the center of the street rather than at the exact location.
This reply is for PremiumPress customers only.
Copyright © 2010-2021 PremiumPress Limited.