|
Routify Documentation
|
Public Member Functions | |
| CustomEdge (CustomVertex source, CustomVertex target, JSONObject tags, Long osmId) throws Exception | |
| void | loadMetaData () |
| void | correctAltitude () |
| String | getTag (String tag) |
| CustomVertex | getSourceVertex () |
| CustomVertex | getTargetVertex () |
| double | getEdgeWeight () |
| double | getTravelTime (String transportMode) |
| Double | getTravelTime (String transportMode, boolean includeTraveltime) |
| HashMap< String, Double > | getTraveltime (boolean includeTraveltime) |
| void | setAqius (double aqius) |
| double | getPm_10 () |
| JSONObject | getTags () |
| Long | getOsmId () |
| long | getId () |
| double | getDistance () |
| double | getSlope () |
| double | getNoise () |
| double | getGreenIndex () |
| double | getAqius () |
| String | getHighway () |
| double | getMaxspeed () |
| double | getBearing () |
| String | getCardinalDirection () |
Static Public Member Functions | |
| static CustomEdge | getById (long id) |
Public Attributes | |
| final long | id |
| String | highway |
| double | bearing |
| String | cardinalDirection |
Static Public Attributes | |
| static double | avgPm10 = 0.0 |
| static double | maxPm10 = 0.0 |
| static double | minPm10 = Double.MAX_VALUE |
CustomEdge extends the DefaultWeightedEdge class to model edges in a graph with additional attributes specific to mapping applications. It includes information such as elevation, distance, noise level, and attributes for bridges, tunnels, and types of roads. Additionally, it calculates travel times for different modes of transport.
|
inline |
|
inline |
Sets the altitude value of the source vertex and target vertex to the average value of the direct neighbours and recomputes slope, this is necessary because outliers can be reduced.
|
inline |
|
inline |
|
inlinestatic |
Returns CustomEdge associated with the provided id
| id | the id to look up |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gets travel time for a specific transport mode, or null if travel time is disabled. This method is used for conditional serialization.
| transportMode | The transport mode to get travel time for. |
| includeTraveltime | Whether to include travel time in the response. |
|
inline |
Gets the travel time map, or null if travel time is disabled. This method is used for conditional serialization.
| includeTraveltime | Whether to include travel time in the response. |
|
inline |
Inspects cached meta data and checks for values associated with the edgs osm id depends on CossMapsSystem
|
inline |
|
static |
| double ch.routify.graph.CustomEdge.bearing |
| String ch.routify.graph.CustomEdge.cardinalDirection |
| String ch.routify.graph.CustomEdge.highway |
| final long ch.routify.graph.CustomEdge.id |
|
static |
|
static |