internal utility to detect and set location on a listing