@ipreaw
1) user can enable location detection, that is done using HTML5 geolocation (prompted in browser)
2) when user select location from map, coordinates of this location are sent to database, then these coordinates are used to show listing on map. You can check coordinates in t_item_location table.