BaseMap¶
-
class
leuvenmapmatching.map.base.
BaseMap
(name, use_latlon=True)[source]¶ Abstract class for a Map.
Simple database wrapper/stub.
-
edges_closeto
(loc, max_dist=None, max_elmt=None)[source]¶ Find edges close to a certain location.
Parameters: - loc – Latitude, Longitude
- max_dist – Maximal distance that returned nodes can be from lat-lon
- max_elmt – Maximal number of elements returned after sorting according to distance.
Returns: list[tuple[dist, label, loc]]
-
edges_nbrto
(edge)[source]¶ Return all edges that are linked to
edge
.Defaults to
nodes_nbrto
.Parameters: edge – Edge identifier Returns: list[tuple[label1, label2, loc1, loc2]]
-
nodes_closeto
(loc, max_dist=None, max_elmt=None)[source]¶ Find nodes close to a certain location.
Parameters: - loc – Latitude, Longitude
- max_dist – Maximal distance that returned nodes can be from lat-lon
- max_elmt – Maximal number of elements returned after sorting according to distance.
Returns: list[tuple[dist, label, loc]]
-