package osm
- Alphabetic
- Public
- All
Type Members
-
case class
Intersection(name: String, segments: Array[Segment]) extends Product with Serializable
Intersection
- case class RoadNetwork(intersections: Array[Intersection]) extends Product with Serializable
-
case class
Segment(id: String, direction: String = "", start: jLocation, end: jLocation, points: Array[jLocation] = null) extends Product with Serializable
a road segment may have one or more road-links or segments associated with, This road links are render on the google map, with associated traffic flow information
a road segment may have one or more road-links or segments associated with, This road links are render on the google map, with associated traffic flow information
an example JSON representation of road-link or segment { "id": "700087309", "direction": "E", "start": { "lat": 42.491827551092825, "lon": -90.72371011354872, "alt": 0.0 }, "end": { "lat": 42.49194191750754, "lon": -90.72048326702006, "alt": 0.0 }, "points": [ { "lat": 42.491827551092825, "lon": -90.72371011354872, "alt": 0.0 }, { "lat": 42.491919379500736, "lon": -90.72269553071325, "alt": 0.0 }, { "lat": 42.49195234832061, "lon": -90.72160718712823, "alt": 0.0 }, { "lat": 42.49194191750754, "lon": -90.72048326702006, "alt": 0.0 } ] }
- id
road segment id
- direction
direction of the road segment
- start
starting point of the road segment
- end
end point of the road segment
- points
minimal set of points needed to render the road segment
Value Members
-
object
RoadNetworkGen extends App
generates the JSON for road network, each intersection contains multiple road segments, each segment/edge has a "id" , direction and list of points representing the edge
generates the JSON for road network, each intersection contains multiple road segments, each segment/edge has a "id" , direction and list of points representing the edge
Usage:
mvn exec:java -Dexec.mainClass=com.nvidia.mdx.core.osm.RoadNetworkGen -Dexec.args = [--input-file inputFile] [--config-file configFile]