This class search the osm data
See theOsmSearchEngine for the one and only one instance of this class
A leaflet LatLngBounds object with the previous search limits
A leaflet LatLngBounds object with the current search limits
Start a search into osm for the items selected in the dictionary
A list of DictionaryItem objects used to filter the results received from Osm
A leaflet LatLngBounds object with the previous search limits
A flag to avoid to start a new search when a search is already ongoing
A constant with the half dimension in meter of the search area
Filter the osmElement with the list of selected DictionaryItems and add the osmElement to the map of pointsOfInterest if the osmElement pass the filter. Add also a description, a latitude and longitude to the osmElement
Name | Type | Description |
---|---|---|
osmElement | OsmElement | The object to analyse |
pointsOfInterest | Map | A map with all the retained osmElements |
Compute the search bounds
Compare the tags of the osmElement with the tags of the filterTags
Name | Type | Description |
---|---|---|
osmElement | OsmElement | The osmElement to compare |
filterTags | Array of Object | The filter tags to use Seee DictionaryItem.filterTagsArray |
Build an array of queries for calls to OSM.
Search all selected items on the tree dictionary and for each selected item, add it to a list of selected items and add the first tag to the root tags map.
Name | Type | Description |
---|---|---|
item | DictionaryItem | The item from witch the search start. Recursive function. The first call start with this.#dictionary |