| 1 | <?php |
||
| 18 | class Lookup extends Query |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constuctor |
||
| 23 | * @param array $query Default value for this query |
||
| 24 | */ |
||
| 25 | public function __construct(array $query = []) |
||
| 31 | |||
| 32 | // -- Builder methods ------------------------------------------------------ |
||
| 33 | |||
| 34 | /** |
||
| 35 | * A list of up to 50 specific osm node, way or relations ids to return the addresses for |
||
| 36 | * |
||
| 37 | * @param string $id |
||
| 38 | * |
||
| 39 | * @return maxh\Nominatim\Lookup |
||
| 40 | */ |
||
| 41 | public function osmIds($id) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Output format for the geometry of results |
||
| 50 | * |
||
| 51 | * @param string $polygon |
||
| 52 | * |
||
| 53 | * @throws maxh\Nominatim\Exceptions\InvalidParameterException Polygon is not supported with lookup |
||
| 54 | */ |
||
| 55 | public function polygon($polygon) |
||
| 59 | |||
| 60 | |||
| 61 | } |
||
| 62 |