Need a php function that will use geolocation to determine the correct craigslist hostname for a particular location. For example, [url removed, login to view] for the city of boise. The function should work in Drupal 7.
Summary: the user of a Drupal site has some geographic location. This function should figure out the user's location and then use it to return the correct craigslist hostname for that location.