nrel.hive.model.roadnetwork.haversine_link_id_ops
Module Contents
Functions
|
constructs a LinkId for HaversineRoadNetworks from two GeoIds |
|
unpacks the GeoIds encoded in a HaversineRoadNetwork LinkId |
- nrel.hive.model.roadnetwork.haversine_link_id_ops.geoids_to_link_id(origin: nrel.hive.util.GeoId, destination: nrel.hive.util.GeoId) nrel.hive.util.LinkId[source]
constructs a LinkId for HaversineRoadNetworks from two GeoIds :param origin: the origin GeoId :param destination: the destination GeoId :return: a HaversineRoadNetwork LinkId
- nrel.hive.model.roadnetwork.haversine_link_id_ops.link_id_to_geodis(link_id: nrel.hive.util.LinkId) Tuple[nrel.hive.util.GeoId, nrel.hive.util.GeoId][source]
unpacks the GeoIds encoded in a HaversineRoadNetwork LinkId :param link_id: the LinkId to extract :return: the origin and destination GeoIds encoded in this LinkId :raises: TypeError, when the provided LinkId does not take the expected form