Use proper geocoding endpoint. Fixes #315

This commit is contained in:
Tom MacWright
2013-01-02 14:22:03 -05:00
parent 349367ada4
commit 912e612206
+2 -1
View File
@@ -6,8 +6,9 @@ iD.geocoder = function() {
function keydown() {
if (d3.event.keyCode !== 13) return;
d3.event.preventDefault();
d3.json('http://api.tiles.mapbox.com/v3/mapbox/geocode/' +
d3.json('http://api.tiles.mapbox.com/v3/openstreetmap.map-hn253zqn/geocode/' +
encodeURIComponent(this.value) + '.json', function(err, resp) {
if (err) return hide();
hide();
map.center([resp.results[0][0].lon, resp.results[0][0].lat]);
});