Add distance supported units

This commit is contained in:
David Pilato 2013-09-17 14:20:26 +02:00
parent dcc45070bd
commit 1e3ffa0df7
2 changed files with 5 additions and 5 deletions

View File

@ -142,9 +142,9 @@ The following are options allowed on the filter:
|=======================================================================
|Option |Description
|`distance` |The distance to include hits in the filter. The distance
can be a numeric value, and then the `unit` (either `mi`/@miles@ or `km`
can be set) controlling the unit. Or a single string with the unit as
well.
can be a numeric value, and then the `unit` (either `mi`, `miles`, `in`, `inch`, `yd`, `yards`, `km`, `kilometers`,
`mm`, `millimeters`, `cm`, `centimeters`, `m` or `meters` can be set) controlling the unit.
Or a single string with the unit as well.
|`distance_type` |How to compute the distance. Can either be `arc`
(better precision) or `plane` (faster). Defaults to `arc`.

View File

@ -169,7 +169,7 @@ itself.
|=======================================================================
|Option |Description
|`unit` |The unit the ranges are provided in. Defaults to `km`. Can also
be `mi` or `miles`.
be `mi`, `miles`, `in`, `inch`, `yd`, `yards`, `kilometers`, `mm`, `millimeters`, `cm`, `centimeters`, `m` or `meters`.
|`distance_type` |How to compute the distance. Can either be `arc`
(better precision) or `plane` (faster). Defaults to `arc`.