change query param to q=
This commit is contained in:
parent
3e30be67e1
commit
2da0ccbe7f
|
@ -9,7 +9,7 @@ def search(request):
|
|||
return render_to_response("search.html", d)
|
||||
|
||||
def search_json(request):
|
||||
search_term = request.GET.get("search", "")
|
||||
search_term = request.GET.get("q", "")
|
||||
threshold = request.GET.get("threshold", 0.5)
|
||||
bbox = request.GET.get("bbox", False)
|
||||
country = request.GET.get("adm0", "US") # right now, unused
|
||||
|
|
|
@ -18,7 +18,7 @@ $(function() {
|
|||
var search_term = $('#search').val();
|
||||
$.getJSON("/feature/search.json", {
|
||||
'bbox': bbox,
|
||||
'search': search_term,
|
||||
'q': search_term,
|
||||
'srid': 3785,
|
||||
'threshold': 0.5
|
||||
}, function(features) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user