Use reverse geocoders for any lat/lon queries

This simplifies the implementation, allows code sharing with
"Where am I?", and produces friendlier results for lat/lon
searches (actual reverse geocode results rather than a raw
lat/lon display).
This commit is contained in:
John Firebaugh 2013-10-09 10:06:28 -07:00 committed by Tom Hughes
parent efc6aaf215
commit aaeca5b534
8 changed files with 108 additions and 138 deletions

View file

@ -24,6 +24,7 @@ function initializeSearch(map) {
$("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
$("#sidebar_content").load($(this).attr("action"), {
query: $("#query").val(),
zoom: map.getZoom(),
minlon: bounds.getWest(),
minlat: bounds.getSouth(),
maxlon: bounds.getEast(),