polaris.network.transit.transit_elements.Stop#
- class polaris.network.transit.transit_elements.Stop(agency_id: int)#
Bases:
BasicPTElementTransit stop as read from the GTFS feed
- GTFS class members:
stop (
str): Stop corresponds to stop_id as read from the GTFS feed prefixed with the agency ID prefixstop_code (
str): Stop code as read from the GTFS feedstop_name (
str): Stop name as read from the GTFS feedstop_desc (
str): Stop description as read from the GTFS feedstop_lat (
float): Stop latitude as read from the GTFS feedstop_lon (
float): Stop longitude as read from the GTFS feedstop_street (
str): Stop street as read from the GTFS feedzone_id (
str): Transit Zone ID as read from the GTFS feedstop_url (
str): Stop URL as read from the GTFS feedlocation_type (
int): Stop location type as read from the GTFS feedparent_station (
str): Stop parent station as read from the GTFS feedstop_timezone (
str): Stop Time Zone as read from the GTFS feedwheelchair_boarding (
int): Stop wheelchair boarding flag as read from the GTFS feed
- Processing class members:
stop_id (
int): Stop ID is a integer that will be used as the unique identifier for the stop in the databasestop (
str): Stop ID as read from the GTFS feed prefixed with the agency ID prefixtaz (
str): Model Zone number (geo-tagged)agency (
str): Agency namehas_parking (
int): Flag to identify if stop has parking availablesrid (
int): Database SRIDgeo (
Point): Point object corresponding to the provided Latitude/Longituderoute_type (
int): Route type of the routes associated with this stop
- __init__(agency_id: int)#
Methods
__init__(agency_id)from_database(conn, stop_id)from_row(data)populate(record, headers)save_to_database(conn[, commit])Saves Transit Stop to the database
Attributes
- __init__(agency_id: int)#
- populate(record: tuple, headers: list) None#
- save_to_database(conn: Connection, commit=True)#
Saves Transit Stop to the database
- from_database(conn: Connection, stop_id)#
- property data: list#
- get_node_id()#