Class StreetFinder

Search:

Source : file core/mapIcon/StreetFinder.js at line 44

Constructor

new StreetFinder ( )

The constructor

Source : file core/mapIcon/StreetFinder.js at line 407

Public methods

findData ( computeData, noteData, overpassAPIDataLoader )

Find street info: street names, city, roundabout info, rcnRef info ...

Source : file core/mapIcon/StreetFinder.js at line 418

Parameters

Name Type Description
computeData ComputeDataForMapIcon

The object with the data needed for the computations

noteData NoteDataForMapIcon

The object with the nota data

overpassAPIDataLoader OverpassAPIDataLoader

The OverpassAPIDataLoader object containing the data found in OSM

Private properties

#computeData : ComputeDataForMapIcon

A reference to the computeData object of the MapIconFromOsmFactory

Source : file core/mapIcon/StreetFinder.js at line 51

#iconOsmNode : Number

The osm node of the rcnRef

Source : file core/mapIcon/StreetFinder.js at line 79

#iconOsmNodeId : Number

The osm node id of the incoming node

Source : file core/mapIcon/StreetFinder.js at line 86

#incomingOsmNodeId : Number

The osm node id of the incoming node

Source : file core/mapIcon/StreetFinder.js at line 93

#incomingStreetName : String

The incoming street name

Source : file core/mapIcon/StreetFinder.js at line 107

#noteData : NoteDataForMapIcon

A reference to the noteData Object of the MapIconFromOsmFactory

Source : file core/mapIcon/StreetFinder.js at line 58

#outgoingOsmNodeId : Number

The osm node id of the outgoing node

Source : file core/mapIcon/StreetFinder.js at line 100

#outgoingStreetName : String

The outgoing street name

Source : file core/mapIcon/StreetFinder.js at line 114

#overpassAPIDataLoader : OverpassAPIDataLoader

A reference to the noteData overpassAPIDataLoader of the MapIconFromOsmFactory

Source : file core/mapIcon/StreetFinder.js at line 65

#rcnRefOsmNode : Number

The osm node of the rcnRef

Source : file core/mapIcon/StreetFinder.js at line 72

#roundaboutData : RoundaboutData

Roundabout data

Source : file core/mapIcon/StreetFinder.js at line 121

Private methods

#addAddress ( )

Adding street name

Source : file core/mapIcon/StreetFinder.js at line 353

#addCity ( )

Adding city and hamlet to the address

Source : file core/mapIcon/StreetFinder.js at line 339

#addRcnRefNumber ( )

Adding the rcnRef number to the tooltip and the computeData

Source : file core/mapIcon/StreetFinder.js at line 263

#addRoundaboutInfo ( )

Adding roundabout info

Source : file core/mapIcon/StreetFinder.js at line 386

#findMiniRoundabout ( )

Searching a mini roundabout at the icon node

Source : file core/mapIcon/StreetFinder.js at line 255

#findOsmNodes ( )

Searching incoming node and outgoing node ( nodes before and after the icon node on the route ) and the rcnRef node ( bike only )

Source : file core/mapIcon/StreetFinder.js at line 174

#findStreets ( )

Searching passing streets names, incoming and outgoing streets names, roundabout entry and exit

Source : file core/mapIcon/StreetFinder.js at line 275

#getWayName ( way )

Return the name of a way

Source : file core/mapIcon/StreetFinder.js at line 129

Parameters

Name Type Description
way OsmElement

A way found in the request result

Returns

The concatenation of the way.ref and way.name if any
Type : String

#latLngCompare ( itineraryPoint )

This method compare the lat and lng of the parameter with the lat and lng of the route waypoints

Source : file core/mapIcon/StreetFinder.js at line 142

Parameters

Name Type Description
itineraryPoint ItineraryPoint

The itineraryPoint to test

Returns

True when the itineraryPoint is not at the same position than a WayPoint and not at the same position than the icon point
Type : Boolean