1 | <?php |
||
32 | class AdresseProvider extends AbstractProvider { |
||
33 | |||
34 | /** |
||
35 | * Endpoint path. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | const ENDPOINT_PATH = "https://api-adresse.data.gouv.fr"; |
||
40 | |||
41 | /** |
||
42 | * Add an array. |
||
43 | * |
||
44 | * @param array $post The POST. |
||
45 | * @param string $name The name. |
||
46 | * @param array $data The data. |
||
47 | * @return void |
||
48 | */ |
||
49 | protected function appendArray(array &$post, $name, array $data) { |
||
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | public function getEndpointPath() { |
||
69 | |||
70 | /** |
||
71 | * Reverse. |
||
72 | * |
||
73 | * @param ReverseRequest $request The reverse request. |
||
74 | * @return FeatureCollection|null Returns the reverse response in case of success, null otherwise. |
||
75 | * @throws ApiException Throws an API exception if an error occurs. |
||
76 | */ |
||
77 | public function reverse(ReverseRequest $request) { |
||
85 | |||
86 | /** |
||
87 | * Reverse CSV. |
||
88 | * |
||
89 | * @param ReverseCsvRequest $request The reverse CSV request. |
||
90 | * @return ReverseCsvResponse Returns the reverse CSV response. |
||
91 | * @throws ApiException Throws an API exception if an error occurs. |
||
92 | */ |
||
93 | public function reverseCsv(ReverseCsvRequest $request) { |
||
110 | |||
111 | /** |
||
112 | * Search. |
||
113 | * |
||
114 | * @param SearchRequest $request The search request. |
||
115 | * @return FeatureCollection|null Returns the search response in case of success, null otherwise. |
||
116 | * @throws ApiException Throws an API exception if an error occurs. |
||
117 | */ |
||
118 | public function search(SearchRequest $request) { |
||
126 | |||
127 | /** |
||
128 | * Search CSV. |
||
129 | * |
||
130 | * @param SearchCsvRequest $request The search CSV request. |
||
131 | * @return SearchCsvResponse Returns the search CSV response. |
||
132 | * @throws ApiException Throws an API exception if an error occurs. |
||
133 | */ |
||
134 | public function searchCsv(SearchCsvRequest $request) { |
||
153 | } |