Browse Source

🔀 Moved images to local repository

pull/172/head
Riordan 9 years ago
parent
commit
03e3d46df4
  1. 12
      getting-started/002-search.md
  2. 0
      getting-started/images/boundary_london.png
  3. 0
      getting-started/images/focus_point.png
  4. 0
      getting-started/images/overlapping_boundaries.gif
  5. 0
      getting-started/images/world_all.png
  6. 0
      getting-started/images/world_circle.png
  7. 0
      getting-started/images/world_country.png
  8. 0
      getting-started/images/world_rect.png

12
getting-started/002-search.md

@ -17,7 +17,7 @@ All Mapzen Search requests share the same format:
## Search the world
![](https://github.com/dianashk/pelias-doc/blob/master/getting-started/world_all.png)
![](/getting-started/images/world_all.png)
In the simplest search, you can provide only one parameter, the text you want to match in any part of the location details. To accomplish this, build a query where the `text` parameter is set to the item you want to find.
@ -61,7 +61,7 @@ If you are looking for places in a particular region, or country, or only want t
### Search within a particular country
![](https://github.com/dianashk/pelias-doc/blob/master/getting-started/world_country.png)
![](/getting-started/images/world_country.png)
Sometimes your work might require that all the search results be from a particular country. To do this, you can set the `boundary.country` parameter value to the alpha-2 or alpha-3 [ISO-3166 country code](https://en.wikipedia.org/wiki/ISO_3166-1).
@ -107,7 +107,7 @@ Results in the United States:
### Search within a rectangular region
![](https://github.com/dianashk/pelias-doc/blob/master/getting-started/world_rect.png)
![](/getting-started/images/world_rect.png)
To specify the boundary using a rectangle, you need latitude, longitude coordinates for two diagonals of the bounding box (the mininum and the maximum latitude, longitude).
@ -139,7 +139,7 @@ For example, to find a YMCA within the state of Texas, you can set the `boundary
### Search within a circular region
![](https://github.com/dianashk/pelias-doc/blob/master/getting-started/world_circle.png)
![](/getting-started/images/world_circle.png)
Sometimes you don't have a rectangle to work with, but rather you have a point on earth—for example, your location coordinates—and a maximum distance within which acceptable results can be located.
@ -168,14 +168,14 @@ You can see the results have fewer than the standard 10 items because there are
If you're going to attempt using multiple boundary types in a single search request, be aware that the results will come from the intersection of all the boundaries. So if you provide regions that don't overlap, you'll be looking at an empty set of results. You've been warned. Here's an image of how it works:
![](https://github.com/dianashk/pelias-doc/blob/master/getting-started/overlapping_boundaries.gif)
![](/getting-started/images/overlapping_boundaries.gif)
## Prioritize results by proximity
Many use cases call for the ability to promote nearby results to the top of the list, while still allowing important matches from farther away to be visible. Mapzen Search allows you to prioritize results within geographic boundaries, including around a point, within a country, or within a region.
### Prioritize around a point
![](https://github.com/dianashk/pelias-doc/blob/master/getting-started/focus_point.png)
![](/getting-started/images/focus_point.png)
By specifying a `focus.point`, nearby places will be scored higher depending on how close they are to the `focus.point` so that places with higher scores will appear higher in the results list. The effect of this scoring boost diminishes to zero after 100 kilometers away from the `focus.point`. After all the nearby results have been found, additional results will come from the rest of the world, without any further location-based prioritization.

0
getting-started/boundary_london.png → getting-started/images/boundary_london.png

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

0
getting-started/focus_point.png → getting-started/images/focus_point.png

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 255 KiB

0
getting-started/overlapping_boundaries.gif → getting-started/images/overlapping_boundaries.gif

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

0
getting-started/world_all.png → getting-started/images/world_all.png

Before

Width:  |  Height:  |  Size: 359 KiB

After

Width:  |  Height:  |  Size: 359 KiB

0
getting-started/world_circle.png → getting-started/images/world_circle.png

Before

Width:  |  Height:  |  Size: 372 KiB

After

Width:  |  Height:  |  Size: 372 KiB

0
getting-started/world_country.png → getting-started/images/world_country.png

Before

Width:  |  Height:  |  Size: 364 KiB

After

Width:  |  Height:  |  Size: 364 KiB

0
getting-started/world_rect.png → getting-started/images/world_rect.png

Before

Width:  |  Height:  |  Size: 373 KiB

After

Width:  |  Height:  |  Size: 373 KiB

Loading…
Cancel
Save