isPTRoute property

bool get isPTRoute

Whether this route is a Public Transport (PT) route.

PT routes contain segments and instructions specific to public transport (pedestrian legs, transit legs, tickets, frequency information, etc.).

Returns

  • true if the route is a PT route, otherwise false.

Also see:

Implementation

bool get isPTRoute {
  final OperationResult resultString = objectMethod(
    super.pointerId,
    'Route',
    'isPTRoute',
  );

  return resultString['result'];
}