Skip to content

Commit

Permalink
Documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Nov 18, 2019
1 parent 60f7452 commit 0ccd3cd
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions search.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,9 @@ Spelling matters, but not capitalization when performing a query with Pelias. Yo
Note that the results are spread out throughout the world because you have not given your current location or provided any other geographic context in which to search.

## Search for a component of a location

With the `text` parameter, your search is composed of all the items in one string. With [structured geocoding](structured-geocoding.md), you can search for individual components of a location.

Structured geocoding accepts one or more of the following parameters:

* address
* neighbourhood
* borough
* locality
* county
* region
* postalcode
* country

Structured geocoding also supports the other parameters from `search`, allowing you to filter and prioritize your results.

For more information on how to search this way, see [Structured geocoding](structured-geocoding.md).

## Set the number of results returned

By default, Pelias results up to 10 places, unless otherwise specified. If you want a different number of results, set the `size` parameter to the desired number. This example shows returning only the first result.
By default, Pelias returns up to 10 results. If you want a different number, set the `size` parameter to the desired number. This example shows returning only the first result.

| parameter | value |
| :--- | :--- |
Expand Down

0 comments on commit 0ccd3cd

Please sign in to comment.