pt_map package#
Subpackages#
Submodules#
pt_map.admin module#
pt_map.apps module#
pt_map.models module#
Models#
Django database models representing the files of the GTFS Reference with all their fields
- pt_map.models.Classes#
- -------
- Agency, Stop, Route, Trip, StopTime, Calendar, CalendarDate, FareAttribute, FareRule, Shape, Frequency, Transfer, Pathway, Level, FeedInfo, Location, BookingRule, Translation, Attribution, LocationGroup, LocationGroupStop, RouteNetwork, Network, StopArea, Area, FareMedium, FareProduct, FareLegRule, FareTransferRule, Timeframe
Different files as described in the GTFS Reference
- class pt_map.models.Agency(*args, **kwargs)#
Bases:
ModelRepresents agency.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- agency_email#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_fare_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_lang#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_phone#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_timezone#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- agency_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- attribution_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fareattribute_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- route_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Area(*args, **kwargs)#
Bases:
ModelRepresents area.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- area_description#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- area_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- area_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- farelegrule_from_area#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- farelegrule_to_area#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- stoparea_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Attribution(*args, **kwargs)#
Bases:
ModelRepresents attribution.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- agency_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- agency_id_id#
- attribution_email#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- attribution_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- attribution_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- attribution_phone#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- attribution_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- is_authority#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_operator#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_producer#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- organization_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- route_id_id#
- trip_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- trip_id_id#
- class pt_map.models.BookingRule(*args, **kwargs)#
Bases:
ModelRepresents booking_rule.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- booking_rule_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- booking_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- booking_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- drop_off_message#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- info_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- message#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- phone_number#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- pickup_message#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_duration_max#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_duration_min#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_last_day#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_last_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_service_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_start_day#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- prior_notice_start_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_times_drop_off#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stop_times_pickup#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Calendar(*args, **kwargs)#
Bases:
ModelRepresents calendar.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- end_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- friday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_next_by_end_date(*, field=<django.db.models.fields.DateField: end_date>, is_next=True, **kwargs)#
- get_next_by_start_date(*, field=<django.db.models.fields.DateField: start_date>, is_next=True, **kwargs)#
- get_previous_by_end_date(*, field=<django.db.models.fields.DateField: end_date>, is_next=False, **kwargs)#
- get_previous_by_start_date(*, field=<django.db.models.fields.DateField: start_date>, is_next=False, **kwargs)#
- monday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- saturday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- service_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- start_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- sunday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- thursday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- tuesday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- wednesday#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.CalendarDate(*args, **kwargs)#
Bases:
ModelRepresents calendar_date.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- calendar_date_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- get_next_by_date(*, field=<django.db.models.fields.DateField: date>, is_next=True, **kwargs)#
- get_previous_by_date(*, field=<django.db.models.fields.DateField: date>, is_next=False, **kwargs)#
- objects = <django.db.models.manager.Manager object>#
- service_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.FareAttribute(*args, **kwargs)#
Bases:
ModelRepresents fare_attribute.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- agency_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- agency_id_id#
- currency_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- farerule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- payment_method#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- price#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- transfer_duration#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- transfers#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.FareLegRule(*args, **kwargs)#
Bases:
ModelRepresents fare_legRule.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- fare_leg_rule_description#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_leg_rule_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_leg_rule_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_product_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- fare_product_id_id#
- fare_transfer_rules_from#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fare_transfer_rules_to#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- from_area_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- from_area_id_id#
- from_timeframe_group_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- leg_group_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- network_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- network_id_id#
- objects = <django.db.models.manager.Manager object>#
- rule_priority#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- to_area_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- to_area_id_id#
- to_timeframe_group_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.FareMedium(*args, **kwargs)#
Bases:
ModelRepresents fare_medium.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- fare_media_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_media_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_media_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fareproduct_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- get_fare_media_type_display(*, field=<django.db.models.fields.IntegerField: fare_media_type>)#
- objects = <django.db.models.manager.Manager object>#
- class pt_map.models.FareProduct(*args, **kwargs)#
Bases:
ModelRepresents fare_product.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- amount#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- currency#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_media_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- fare_media_id_id#
- fare_product_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_product_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_product_pk#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- farelegrule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- faretransferrule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- class pt_map.models.FareRule(*args, **kwargs)#
Bases:
ModelRepresents fare_rule.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- contains_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- destination_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fare_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- fare_id_id#
- fare_rule_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- origin_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- route_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- route_id_id#
- class pt_map.models.FareTransferRule(*args, **kwargs)#
Bases:
ModelRepresents faretransfer_rule.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- duration_limit#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- duration_limit_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_product_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- fare_product_id_id#
- fare_transfer_rule_description#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_transfer_rule_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_transfer_rule_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_transfer_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- from_leg_group_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- get_duration_limit_type_display(*, field=<django.db.models.fields.CharField: duration_limit_type>)#
- get_fare_transfer_type_display(*, field=<django.db.models.fields.CharField: fare_transfer_type>)#
- objects = <django.db.models.manager.Manager object>#
- to_leg_group_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfer_count#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.FeedInfo(*args, **kwargs)#
Bases:
ModelRepresents feed_info.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- agency_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- area_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- attribution_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- bookingrule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- calendar_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- calendardate_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- default_lang#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fareattribute_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- farelegrule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- faremedium_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fareproduct_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- farerule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- faretransferrule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_contact_email#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_contact_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_end_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_lang#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_publisher_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_publisher_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_start_date#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_version#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- frequency_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- level_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- location_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- locationgroup_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- locationgroupstop_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- network_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>#
- pathway_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- route_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- routenetwork_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- shape_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stop_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stoparea_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stoptime_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- timeframe_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfer_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- translation_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- trip_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Frequency(*args, **kwargs)#
Bases:
ModelRepresents frequency.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- end_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exact_times#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- frequency_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- headway_secs#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- start_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- trip_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- trip_id_id#
- class pt_map.models.Level(*args, **kwargs)#
Bases:
ModelRepresents level.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- level_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- level_index#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- level_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- stop_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Location(*args, **kwargs)#
Bases:
ModelRepresents locations.geojson from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- geometry_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_geometry_type_display(*, field=<django.db.models.fields.CharField: geometry_type>)#
- latitude#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- location_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- longitude#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- stop_desc#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stoptime_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.LocationGroup(*args, **kwargs)#
Bases:
ModelRepresents location_group.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- location_group_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- location_group_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- location_group_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- locationgroupstop_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>#
- stoptime_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.LocationGroupStop(*args, **kwargs)#
Bases:
ModelRepresents location_groupStop.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- location_group_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- location_group_id_id#
- location_group_stop_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- stop_id_id#
- class pt_map.models.Network(*args, **kwargs)#
Bases:
ModelRepresents network.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- farelegrule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- network_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- network_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- route_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- routenetwork_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Pathway(*args, **kwargs)#
Bases:
ModelRepresents lathway.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- from_stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- from_stop_id_id#
- is_bidirectional#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- length#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_slope#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- min_width#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- pathway_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- pathway_mode#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reversed_signposted_as#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- signposted_as#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stair_count#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- to_stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- to_stop_id_id#
- traversal_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.Route(*args, **kwargs)#
Bases:
ModelRepresents route.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- agency_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- agency_id_id#
- attribution_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- continuous_drop_off#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- continuous_pickup#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- farerule_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- get_continuous_drop_off_display(*, field=<django.db.models.fields.IntegerField: continuous_drop_off>)#
- get_continuous_pickup_display(*, field=<django.db.models.fields.IntegerField: continuous_pickup>)#
- network_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- network_id_id#
- objects = <django.db.models.manager.Manager object>#
- route_color#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_desc#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_long_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_short_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_sort_order#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_text_color#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- routenetwork_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfers_from_route#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfers_to_route#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- trip_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.RouteNetwork(*args, **kwargs)#
Bases:
ModelRepresents route_network.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- network_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- network_id_id#
- objects = <django.db.models.manager.Manager object>#
- route_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- route_id_id#
- route_network_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- route_network_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.Shape(*args, **kwargs)#
Bases:
ModelRepresents shape.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- shape_dist_traveled#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_pk#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_pt_lat#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_pt_lon#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_pt_sequence#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- trips#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- class pt_map.models.Stop(*args, **kwargs)#
Bases:
ModelRepresents stop.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- fare_rules_for_zone_as_destination#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fare_rules_for_zone_as_origin#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fare_rules_for_zone_contains#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- level_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- level_id_id#
- location_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- locationgroupstop_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>#
- parent_station#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- parent_station_id#
- pathways_from#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- pathways_to#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- platform_code#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_code#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_desc#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_lat#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_lon#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stop_timezone#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_url#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stoparea_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stoptime_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfers_from_stop#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfers_to_stop#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- tts_stop_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- wheelchair_boarding#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- zone_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.StopArea(*args, **kwargs)#
Bases:
ModelRepresents stop_area.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- area_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- area_id_id#
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- stop_area_description#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_area_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_area_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- stop_id_id#
- class pt_map.models.StopTime(*args, **kwargs)#
Bases:
ModelRepresents stop_time.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- arrival_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- continuous_drop_off#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- continuous_pickup#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- departure_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- drop_off_booking_rule_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- drop_off_booking_rule_id_id#
- drop_off_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- end_pickup_drop_off_window#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- get_continuous_drop_off_display(*, field=<django.db.models.fields.IntegerField: continuous_drop_off>)#
- get_continuous_pickup_display(*, field=<django.db.models.fields.IntegerField: continuous_pickup>)#
- get_drop_off_type_display(*, field=<django.db.models.fields.IntegerField: drop_off_type>)#
- get_pickup_type_display(*, field=<django.db.models.fields.IntegerField: pickup_type>)#
- get_timepoint_display(*, field=<django.db.models.fields.IntegerField: timepoint>)#
- location_group_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- location_group_id_id#
- location_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- location_id_id#
- objects = <django.db.models.manager.Manager object>#
- pickup_booking_rule_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- pickup_booking_rule_id_id#
- pickup_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_dist_traveled#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- start_pickup_drop_off_window#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_headsign#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- stop_id_id#
- stop_sequence#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stop_time_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- timepoint#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- trip_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- trip_id_id#
- class pt_map.models.Timeframe(*args, **kwargs)#
Bases:
ModelRepresents timeframe.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- end_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- fare_leg_rules_from#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- fare_leg_rules_to#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- objects = <django.db.models.manager.Manager object>#
- service_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- start_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- timeframe_group_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.Transfer(*args, **kwargs)#
Bases:
ModelRepresents transfer.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- from_route_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- from_route_id_id#
- from_stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- from_stop_id_id#
- from_trip_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- from_trip_id_id#
- min_transfer_time#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- to_route_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- to_route_id_id#
- to_stop_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- to_stop_id_id#
- to_trip_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- to_trip_id_id#
- transfer_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- transfer_type#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.Translation(*args, **kwargs)#
Bases:
ModelRepresents translation.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- field_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- field_value#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_table_name_display(*, field=<django.db.models.fields.CharField: table_name>)#
- language#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>#
- record_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- record_sub_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- table_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- translation#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- translation_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class pt_map.models.Trip(*args, **kwargs)#
Bases:
ModelRepresents trip.txt from the GTFS Reference.
- exception DoesNotExist#
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned#
Bases:
MultipleObjectsReturned
- as_dict()#
- attribution_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- bikes_allowed#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- block_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- direction_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- feed_info_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- feed_info_id_id#
- frequency_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- objects = <django.db.models.manager.Manager object>#
- route_id#
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parentis aForwardManyToOneDescriptorinstance.
- route_id_id#
- service_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- shape_id#
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- stoptime_set#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfers_from_trip#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- transfers_to_trip#
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- trip_headsign#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- trip_id#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- trip_short_name#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- wheelchair_accessible#
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
pt_map.tests_gtfs_compliance module#
Test GTFS Compliance#
Test suite meant to make sure the models do their best to enforce compliance of the database with the gtfs standard. In particular we are testing: 1. All of the txt files the reference suggests have a model representation. 2. All of the fields described in each of the files is representable inside the corresponding model. 3. The fields can be set with standard data for the correct data type. 4. None of the optional fields are enforced to be set. (TODO) 5. All of the required fields are enforced to be set with a legal value. (TODO) 6. If set, the optional fields hold only legal values (TODO) 7. All conditional requirements and restrictions are enforced. (TODO) 8. Foreign keys and many to many sets are actually set within the database and are validated. (TODO)
Functions#
- _get_test_data(f: function):
Decorator, wrapping instance methods to provide an extendable method to get data from the test data set based on the TestCase’s requirements.
- _test_constructor(f: function):
Decorator. Basic test to validate if the models are instantiable with the given set of fields.
Classes#
- AllFieldsPresentTestCase(TestCase):
Test case making sure all files are represented with a complete set of fields. (Conditions 1+2 from the above list)
- ConstructorAllFieldsTestCase(TestCase):
Test case making sure the models can be instantiated given valid values for all their fields. (3)
- ConstructorRequiredFieldsOnlyTestCase(TestCase):
Test case making sure the model creation is fine with just the required fields. (4)
- class pt_map.tests_gtfs_compliance.AllFieldsPresentTestCase(methodName='runTest')#
Bases:
TestCaseTest for the presence of all the fields of all the models, the GTFS reference describes.
- setUp()#
Hook method for setting up the test fixture before exercising it.
- test_all_fields_present()#
Make sure the model has properties for all fields - regardless if required - provided by the GTFS standard.
- class pt_map.tests_gtfs_compliance.ConstructorAllFieldsTestCase(methodName='runTest')#
Bases:
TransactionTestCaseTest all the models can be initialized using appropriate data as specified by the GTFS.
- get_test_data(field, model, d, i)#
- setUp()#
Hook method for setting up the test fixture before exercising it.
- test_constructor_all_fields_fixed(*args, **kwargs)#
- test_constructor_all_fields_other(*args, **kwargs)#
- class pt_map.tests_gtfs_compliance.ConstructorRequiredFieldsOnlyTestCase(methodName='runTest')#
Bases:
TransactionTestCase- get_test_data(field, model, d, i)#
- setUp()#
Hook method for setting up the test fixture before exercising it.
- test_constructor_required_fields_only_fixed(*args, **kwargs)#
- test_constructor_required_fields_only_other(*args, **kwargs)#
pt_map.urls module#
Redirecting HTTP requests destined for the app pt_map to the correct views
pt_map.views module#
Views#
Views serving browser viewable, HTML web pages.
Functions#
- index
Home page
pt_map.query module#
Query#
Module to handle database IO while abstracting the specific SQL and django model filtering.
Functions#
- get_field_names(model: django.db.models.base.ModelBase) -> list[str]:
Return all the model’s field names as a list of strings
- get_pks_from_get(req_get: dict[str,str]) -> dict[django.db.models.base.ModelBase, list[str]]:
For given GET data return the primary keys requested mapped to the model classes
- get_obj_by_pk(mdl: django.db.models.base.ModelBase, pks: list[str]) -> list[mdl]:
For a given model class and list of primary keys of that class, return the corresponding model objects.
- obj_from_get(req_get: django dict-like request.GET) -> dict[django.db.base.models.ModelBase, list[models.Model]):
For given GET data, return a dict mapping the model classes to the requested instances.
- get_trips(routes: list[pt_map.models.Route]) -> dict[str, list[pt_map.models.Trip]]:
For a list of Routes, return a dict mapping a list of all Trips associated with an individual Route, mapped to its route_id.
- get_stop_sequences(routes: list[pt_map.models.Route], [trips: dict[str, list[pt_map.models.Trip]]]) -> dict[str, list[pt_map.models.Stop]]:
For a list of routes, return a dict mapping an ordered sequence of stops to the Routes route_id. If a dict of lists trips mapped to the respective route_ids is given, the first elements of each of those lists is used, otherwise it is calculated. If the trips argument is given, it is expected to hold a value for all the Routes in routes.
- get_timetable(r: pt_map.models.Route, [trips_r: list[pt_map.models.Trip]], [stop_sequence: list[pt_map.models.Stop]]) -> :
Calculate a timetable for a Route r. If a list of trips for that route and/or a stop sequence is given, their first elements are used, otherwise all are calculated and the first elements are used.
- get_all_stops() -> dict[str, dict[str, str]]:
Return a dict mapping all stop_ids in the database to a dict of relevant values.
- get_all_routes() -> list[dict[str,str]]:
Return a list of dicts containing route_ids and other relevant values of all Routes in the database.
- pt_map.query.get_all_routes() list[dict[str, str]]#
Return a list of all Route objects found in the database.
Representation of the result: list:
[ { 'route_id': pt_map.models.Route.route_id, 'route_type': pt_map.models.Route.route_type, 'route_name': pt_map.models.Route.route_short_name if set else pt_map.models.Route.route_long_name, 'agency_id': pt_map.models.Route.agency_id.agency_id, } ]
- pt_map.query.get_all_stops() dict[str, dict[str, str]]#
Return all Stop object stored in the database.
Representation of the result: dict:
{ stop_id (str): { 'stop_name': pt_map.models.Stop.stop_name, 'stop_lat': pt_map.models.Stop.stop_lat, 'stop_lon': pt_map.models.Stop.stop_lon, } }
- pt_map.query.get_field_names(model: Model) list[str]#
Given a model, returns a list of the name strings of all the model’s fields.
- pt_map.query.get_obj_by_pk(mdl: ModelBase, pks: list[str]) list[Model]#
Given a model, and a list of corresponding primary keys, return a list of objects of the given model identified by the given primary keys.
- Parameters:
mdl (django.db.models.base.ModelBase) – Model class to look for
pks (list[str]) – primary keys of the objects to return
- Returns:
Objects corresponding to primary keys in pk.
- Return type:
list[mdl]:
- Raises:
Exception – mdl.DoesNotExist:: If at least one object from the list of pks could not be found.
- pt_map.query.get_pks_from_get(req_get: dict[str, str]) dict[ModelBase, list[str]]#
Extract primary keys from a request.GET dict-like and find the corresponding classes.
- Parameters:
req_get (dict[str, str]) – dict-like object, a HTTP Requests GET data.
- Returns:
dict mapping a model to a list of id fields passed with GET
- Return type:
dict[django.db.models.base.ModelBase, list[str]]
- pt_map.query.get_stop_sequences(routes: list[Route], trips: dict[str, list[Trip]] = None) dict[str, list[str]]#
For all given routes, return a list of stops in the order of appearance along the route. The first trip in the list of trips is used to define the sequence.
- Parameters:
routes (list[pt_map.models.Route]) – List of pt_map.models.Route to find stop sequences for.
trips (dict[str,list[pt_map.models.Trip]]) – List of at least one trip for each Route in routes. If none, all are calculated and the first used for the sequence.
- Returns:
- Keys:
route_ids.
- Values:
Lists of stop_ids in the order of appearance in the first Trip in the routes’ trips list given.
- Return type:
dict[str, list[str]]
- pt_map.query.get_timetable(r: Route, trips_r: list[Trip] = None, stop_sequence: list[str] = None)#
Given a pt_map.models.Route, calculate the timetable for all its stops.
- Parameters:
r (pt_map.models.Route) – Route the timetable should be calculated for.
trips_r (list[pt_map.models.Trip]) – Optional. List of trips travelling on the Route r.
stop_sequence (list[str]) – Optional. List of stop_ids the Route r serves. Currently the first trip is taken as reference for stops and sequence.
- Returns:
- Dict containing two elements:
- ”stop_sequence”list(str):
list of stop_ids the route serves.
- ”stop_times”dict(str, list(str)):
dict mapping stop_ids from stop_sequence to time strings the route is serving the stop at.
- Return type:
dict{“stop_sequence”: list(str), “stop_times”: dict[str, list(str)]}
- pt_map.query.get_trips(routes: list[Route]) dict[str, list[Trip]]#
Return a list of all Trips associated with a Route in the argument.
- Parameters:
routes (list[str]:) – List of primary keys for the Routes to search the trips for.
- Returns:
Keys: route_ids from parameter. Values: lists of corresponding trip objects.
- Return type:
dict[str, list[pt_map.models.Trip]]:
- pt_map.query.obj_from_get(req_get: dict[str, str]) dict[ModelBase, list[Model]]#
Given the GET data of a HTTP Request, return a dict with the requested model classes as keys and lists of the requested model objects as values.