Browse Source

Add list of all parameters for search endpoint

The autocomplete endpoint had this, but search didn't!
pull/161/head
Julian Simioni 8 years ago
parent
commit
a2462cdaeb
No known key found for this signature in database
GPG Key ID: 6DAD08919FDBF563
  1. 20
      search.md

20
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 |

Loading…
Cancel
Save