1 | <?php |
||
18 | class Reverse extends Query |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * OSM Type accepted (Node/Way/Relation) |
||
23 | * @var array |
||
24 | */ |
||
25 | public $osmType = ['N', 'W', 'R']; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Constructo |
||
30 | * @param array $query Default value for this query |
||
31 | */ |
||
32 | public function __construct(array $query = []) |
||
38 | |||
39 | // -- Builder methods ------------------------------------------------------ |
||
40 | |||
41 | /** |
||
42 | * [osmType description] |
||
43 | * |
||
44 | * @param string $type |
||
45 | * |
||
46 | * @return maxh\Nominatim\Reverse |
||
47 | * @throws maxh\Nominatim\Exceptions\InvalidParameterException if osm type is not supported |
||
48 | */ |
||
49 | public function osmType($type) |
||
61 | |||
62 | /** |
||
63 | * A specific osm node / way / relation to return an address for. |
||
64 | * |
||
65 | * @param integer $id |
||
66 | * |
||
67 | * @return maxh\Nominatim\Reverse |
||
68 | */ |
||
69 | public function osmId($id) |
||
75 | |||
76 | /** |
||
77 | * The location to generate an address for |
||
78 | * |
||
79 | * @param float $lat The latitude |
||
80 | * @param float $lon The longitude |
||
81 | * |
||
82 | * @return maxh\Nominatim\Reverse |
||
83 | */ |
||
84 | public function latlon($lat, $lon) |
||
92 | |||
93 | /** |
||
94 | * Level of detail required where 0 is country and 18 is house/building |
||
95 | * |
||
96 | * @param integer $zoom |
||
97 | * |
||
98 | * @return maxh\Nominatim\Reverse |
||
99 | */ |
||
100 | public function zoom($zoom) |
||
106 | |||
107 | |||
108 | } |
||
109 |