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 | 5 | 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) |
||
59 | |||
60 | /** |
||
61 | * A specific osm node / way / relation to return an address for. |
||
62 | * |
||
63 | * @param integer $id |
||
64 | * |
||
65 | * @return maxh\Nominatim\Reverse |
||
66 | */ |
||
67 | public function osmId($id) |
||
73 | |||
74 | /** |
||
75 | * The location to generate an address for |
||
76 | * |
||
77 | * @param float $lat The latitude |
||
78 | * @param float $lon The longitude |
||
79 | * |
||
80 | * @return maxh\Nominatim\Reverse |
||
81 | */ |
||
82 | 1 | public function latlon($lat, $lon) |
|
90 | |||
91 | /** |
||
92 | * Level of detail required where 0 is country and 18 is house/building |
||
93 | * |
||
94 | * @param integer $zoom |
||
95 | * |
||
96 | * @return maxh\Nominatim\Reverse |
||
97 | */ |
||
98 | public function zoom($zoom) |
||
104 | } |
||
105 |