Stephen Hess
dcadc7832e
add focus:scale to /search requests with just viewport.*, calculated from bounding box diagonal, minimum of 1
9 years ago
Julian Simioni
57fb960471
Set centerpoint of viewport in search query
...
This simply reuses the focus:point:{lat|lon} variables, but sets them
using the centerpoint of the viewport. Eventually we should calculate a
radius and use that here.
9 years ago
Peter Johnson
87ce3bd92e
flip lon values for boundary.rect
9 years ago
Diana Shkolnikov
62315a1775
Revert defaults.json change
9 years ago
Peter Johnson
80f419846d
admin boost for sqrt(popularity), autocomplete focus not restricted to phrase matches
9 years ago
Diana Shkolnikov
553f9780c5
Remove admin matching when address is not parsed
9 years ago
Julian Simioni
f3acf3b308
Check for numeric value of lat/lon to avoid null island bug
...
Using the check-types module, check that lat/lon values are numbers,
instead of checking their truthyness, to ensure that queries for null
island work correctly.
9 years ago
Stephen Hess
13635a2c16
added boundary.country to search and reverse queries (with test fixtures)
9 years ago
Stephen Hess
a4c43ee482
added fixture for boundary.country in query building
9 years ago
Diana Shkolnikov
feb1b0a6cd
Update /reverse endpoint params and query as per API spec
9 years ago
Peter Johnson
fa209c9b50
add autocomplete route, further query clean up
9 years ago
Peter Johnson
2f8169ac10
remove unused sort conditions
9 years ago
Peter Johnson
1f13bafab0
refactor reverse & tests
9 years ago
Peter Johnson
f5e182c63b
fix tests, clean by moving fixtures to fixtures dir
9 years ago