Prev Up Next
Go backward to Blocks
Go up to DETAILS
Go forward to Parks

Streets

A city street is conceptually a polyline, with the following attributes (or parameters):

Here is how the street parameter file might be organized:


[FILETYPE "Street Parameters"]

   [RECORD_TYPE] STREET_RECORD

	[STREET_ID] 1	// a ID unique in the neighborhood level
	[STREET_NAME] "Broadway" // the street name
	[STREET_WIDTH] 50 // the street width, including sidewalk
	[STREET_SIDEWALKWIDTH] 10 // the sidewalk width

	// The coordinates of start and end point of the mid-line
	// of the street. Use the coordinate system relative to
	// the neighborhood.

	[STREET_START] (100.0, 100.0)
	[STREET_END] (300.0, 500.0)

	// The divider type of the street
	[STREET_DIVIDER] CENTER_SOLID

	// The number of lanes in each direction
	[STREET_LANES] 2

	// Direction (two way or one way)
	[STREET_DIRECTION] TWO_WAY
	   // if one way, either ONE_WAY_FORWARD
	   // or ONE_WAY_BACKWARD.  Forward direction
	   // is from STREET_START to STREET_END

	[RECORD_TYPE] STREET_SEGMENT_RECORD

		[SEG_ID] 1 //unique within the cureent street
		/* (STREET_ID, SEG_ID) can uniquely locate
		a segment */

		// Same coordinates system as above
		[SEG_START] (100.0, 100.0)
		[SEG_END] (200.0, 350.0)

		// the begining and end intersections
		[INTERSECTIONS] 1, 2

		// the density of meters, in number per mile
		[SEG_NUM_PARKING_METERS] 100

		// block id are unique in a neoghborhood
		[LEFT_BLOCK] 101
		[RIGHT_BLOCK] 102

	[END_RECORD]

	...


	[STREET_INTERSECTION]
		1, 2, 3, 4 // a list of intersection id

   [END_RECORD]

   [RECORD_TYPE] STREET_INTERSECTION
	[INTERSECTION_ID] 1
	// two intersected streets
	[STREET_ID1] 1
	[STREET_ID2] 2
	// the intersection shape
	[POLYGON] (100, 100), (100, 105), (105, 105), (105, 100)
   [RECORD_END]
[ENDFILE]


Chee Yap

Prev Up Next