mosstool.trip.route.preroute

Module Contents

Functions

pre_route

Fill in the route of the person’s all schedules. The function will REMOVE all schedules that can not be routed.

Data

API

mosstool.trip.route.preroute.__all__

[‘pre_route’]

mosstool.trip.route.preroute._TYPE_MAP

None

async mosstool.trip.route.preroute.pre_route(client: mosstool.trip.route.client.RoutingClient, person: pycityproto.city.person.v2.person_pb2.Person, in_place: bool = False) pycityproto.city.person.v2.person_pb2.Person

Fill in the route of the person’s all schedules. The function will REMOVE all schedules that can not be routed.

Args:

  • client (RoutingClient): routing service client

  • person (Person): person object

  • in_place (bool, optional): whether to modify the person object in place. Defaults to False.

Returns:

  • None