Style¶
route_type_emoji ¶
Returns a display emoji for a GTFS route_type code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
route_type
|
int | str
|
A GTFS route type code (standard or extended), as an int or a string coercible to one of the known codes. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The matching emoji, or a generic fallback emoji if the code |
str
|
is not recognized. |
Source code in pyGTFSHandler/maps/style.py
route_type_name ¶
Returns a human-readable name for a GTFS route_type code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
route_type
|
int | str
|
A GTFS route type code (standard or extended), as an int or a string coercible to one of the known codes. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The matching name (e.g. |
str
|
if the code is not recognized. |