nextStreetName property

String get nextStreetName

Street name for the road after the next turn.

Returns the name of the street following the immediate next maneuver. May return an empty string if the street has no assigned name or if information is unavailable. Always check hasNextTurnInfo before relying on this value.

Returns

  • (String) Street name, or empty string if not available.

See also:

Implementation

String get nextStreetName {
  final OperationResult resultString = objectMethod(
    pointerId,
    'NavigationInstruction',
    'getNextStreetName',
  );

  return resultString['result'];
}