This class is used to search osm data with the OverpassAPI
The constructor
Name | Type | Description |
---|---|---|
options | OverpassAPIDataLoaderOptions | An object with the options to set |
The osm country
A map with the osm nodes
The osm place ( hamlet or village )
A map with the osm relations
The final status
A map with the osm ways
This method launch the queries in the OverpassAPI and parse the received data
Name | Type | Description |
---|---|---|
queries | Array of String | An array of queries to be executed in the OverpassAPI |
latLng | Array of Number | The latitude and longitude used in the queries |
The city name found in the OSM data
A map with the osm nodes found by the API, ordered by id
The options for the OverpassAPIDataLoader
The Admin level at witch the cities are placed in OSM (Is country dependant...)
A hamlet, village, city or town name found in the OSM data
An Object with hamlet, village, city and town properties. Each properties are objects with name, distance and maxDistance properties.
A map with the osm relations found by the API, ordered by id
A flag indicating the success or failure of the request
A map with the osm ways found by the API, ordered by id
This method parse the osm elements received from the OverpassAPI
Name | Type | Description |
---|---|---|
osmElements | Array of Object | The osm elements received in the request. |
This method parse the responses from the OverpassAPI
Name | Type | Description |
---|---|---|
results | Array of Object | The results received from fetch |
This method add the geometry to the osm elements
This method search the city and place name from the osm elements