Skip to content

Commit

Permalink
Removed jsonp from boundary calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgroskopf committed May 25, 2011
1 parent 8d9145f commit 3ba9949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finder/templates/demo.js
Expand Up @@ -67,7 +67,7 @@ function geocode(query) {
}
gr = { 'address': query };
} else {
gr = { 'location': new google.maps.LatLng(ll.lat, ll.lng) };
gr = { 'location': new google.maps.LatLng(query.lat, query.lng) };
}
geocoder.geocode(gr, handle_geocode);
}
Expand Down Expand Up @@ -196,7 +196,7 @@ function alt_addresses(results) {
// Use boundary service to lookup what areas the location falls within
function get_boundaries(lat, lng) {
var table_html = '<h3>This location is within:</h3><table id="boundaries" border="0" cellpadding="0" cellspacing="0">';
var query_url = 'http://{{ settings.API_DOMAIN }}/1.0/boundary/?format=jsonp&limit=100&contains='+lat+','+lng+'&callback=?';
var query_url = 'http://{{ settings.API_DOMAIN }}/1.0/boundary/?limit=100&contains=' + lat + ',' + lng + '';

displayed_kind = null;
for_display = null;
Expand Down

0 comments on commit 3ba9949

Please sign in to comment.