From db4f84860de8e60e0084bd74beffafffce97e527 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 26 Oct 2016 17:06:22 -0400 Subject: [PATCH 1/2] Add boundary.rect to available autocomplete parameters --- autocomplete.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autocomplete.md b/autocomplete.md index 10650af..b145fe5 100644 --- a/autocomplete.md +++ b/autocomplete.md @@ -132,6 +132,10 @@ Sometimes your work might require that all the search results be from a particul | `text` | string | yes | none | `Union Square` | | `focus.point.lat` | floating point number | no | none | `48.581755` | | `focus.point.lon` | floating point number | no | none | `7.745843` | +| `boundary.rect.min_lon` | floating point number | no | none | `139.2794` | +| `boundary.rect.max_lon` | floating point number | no | none | `140.1471` | +| `boundary.rect.min_lat` | floating point number | no | none | `35.53308` | +| `boundary.rect.max_lat` | floating point number | no | none | `35.81346` | | `sources` | string | no | all sources: osm,oa,gn,wof | openstreetmap,wof | | `layers` | string | no | all layers: address,venue,neighbourhood,locality,borough,localadmin,county,macrocounty,region,marcoregion,country,coarse | address,venue | | `boundary.country` | string | no | none | 'GBR' | From a2462cdaeb493a628ebb5785f3401e61adc74f44 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 26 Oct 2016 17:07:51 -0400 Subject: [PATCH 2/2] Add list of all parameters for search endpoint The autocomplete endpoint had this, but search didn't! --- search.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/search.md b/search.md index 7196459..c0c3880 100644 --- a/search.md +++ b/search.md @@ -354,3 +354,23 @@ In Mapzen Search, place types are referred to as `layers`, ranging from fine to | `api_key` | [get yours here](https://mapzen.com/developers) | | `text` | YMCA | | `layers` | venue,address | + +## Available search parameters + +| Parameter | Type | Required | Default | Example | +| --- | --- | --- | --- | --- | +| `api_key` | string | yes | none | [get yours here](https://mapzen.com/developers) | +| `text` | string | yes | none | `Union Square` | +| `focus.point.lat` | floating point number | no | none | `48.581755` | +| `focus.point.lon` | floating point number | no | none | `7.745843` | +| `boundary.rect.min_lon` | floating point number | no | none | `139.2794` | +| `boundary.rect.max_lon` | floating point number | no | none | `140.1471` | +| `boundary.rect.min_lat` | floating point number | no | none | `35.53308` | +| `boundary.rect.max_lat` | floating point number | no | none | `35.81346` | +| `boundary.circle.lat` | floating point number | no | none | `43.818156` | +| `boundary.circle.lon` | floating point number | no | none | `-79.186484` | +| `boundary.circle.radius` | floating point number | no | 50 | `35` | +| `sources` | string | no | all sources: osm,oa,gn,wof | openstreetmap,wof | +| `layers` | string | no | all layers: address,venue,neighbourhood,locality,borough,localadmin,county,macrocounty,region,marcoregion,country,coarse | address,venue | +| `boundary.country` | string | no | none | 'GBR' | +| `size` | integer | no | 10 | 20 |