Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 3.84 KB

Location.md

File metadata and controls

25 lines (18 loc) · 3.84 KB

location

A location is a vertex that is associated with a specific location along a link. Locations may be used to represent places where activities occur (e.g., driveways and bus stops). Its attributes are nearly the same as those for a node, except that the location includes an associated link and node, with location specified as distance along the link from the node. The Zone field enables the network to be loaded via locations (similar to what is done in TRANSIMS).

location data dictionary

Field Type Required? Comment
loc_id Location_ID Required Primary Key
link_id Link_ID Required Foreign Key (from Link)
ref_node_id Node_ID Required reference node for linear referencing; foreign key (Nodes table)
lr NUMERIC Required Linear Reference of the location, measured as distance in short_length units along the link from the reference node. If link_geometry exists, it is used. Otherwise, link geometry is assumed to be a crow-fly distance from A node to B node."
x_coord NUMERIC Optional Either provided, or derived from Link, Ref_Node and LR
y_coord NUMERIC Optional Either provided, or derived from Link, Ref_Node and LR
z_coord NUMERIC Optional Altitude in short_length units
loc_type TEXT Optional What it represents (driveway, bus stop, etc.) OpenStreetMap map feature names are recommended.
zone_id Zone_ID Optional Foreign Key, Associated zone
gtfs_stop_id TEXT Optional For bus stops and transit station entrances, provides a link to the General Transit Feed Specification

Ad hoc fields (e.g., area, subarea) may also be added.

Note on lr: If link geometry exists, it is used; otherwise the link geometry is assumed to be the straight line distance between the from_node and to_node

If x_coord or y_coord are not provided, they are derived from Link Ref_Node and LR. If x_coord or y_coord are provided, Link Ref_Node and LR are still required to place the location in the network.