Skip to content

Add route modifier information to network.#1460

Merged
zerebubuth merged 5 commits intomasterfrom
zerebubuth/1387-business-and-spur-routes
Dec 18, 2017
Merged

Add route modifier information to network.#1460
zerebubuth merged 5 commits intomasterfrom
zerebubuth/1387-business-and-spur-routes

Conversation

@zerebubuth
Copy link
Copy Markdown
Member

Add modifier information to network property. For example, a route with modifier=Business and network=US:I would result in an output network property of US:I:Business.

Connects to #1387.

Copy link
Copy Markdown
Member

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor docs change.

Comment thread docs/layers.md Outdated
* `ref`: Commonly-used reference for roads, for example "I 90" for Interstate 90. To use with shields, see `network` and `shield_text`. Related, see `symbol` for pistes.
* `all_networks` and `all_shield_texts`: All the networks of which this road is a part, and all of the shield texts. See `network` and `shield_text` below. **Note** that these properties will not be present on MVT format tiles, as we cannot currently encode lists as values.
* `network`: eg: `US:I` for the United States Interstate network, useful for shields and road selections. This only contains _road_ network types. Please see `bicycle_network` and `walking_network` for bicycle and walking networks, respectively.
* `network`: eg: `US:I` for the United States Interstate network, useful for shields and road selections. This only contains _road_ network types. Please see `bicycle_network` and `walking_network` for bicycle and walking networks, respectively. Note that networks may include "modifier" information, for example `US:I:Business` for a business route or `US:I:Truck` for a truck route.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're whitelisting those in code instead of pass-thru, let's list the values in alphabetical order here (reorder from the SQL below):

('Business', 'Spur', 'Truck', 'Alternate', 'Bypass', 'Connector', 'Historic', 'Toll', 'Scenic')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Noting here there isn't a good OSM Wiki page for modifier to link to, so quoting it alone suffices.)

Copy link
Copy Markdown
Member

@nvkelso nvkelso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@zerebubuth zerebubuth merged commit fcdbee2 into master Dec 18, 2017
@zerebubuth zerebubuth deleted the zerebubuth/1387-business-and-spur-routes branch December 18, 2017 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants