Structures

The following structures are available globally.

NavigationVisualizationServiceBuilder

MarkerVisibility

  • Describes marker visibility setup by zoom level and camera tilt.

    See more

    Declaration

    Swift

    public struct MarkerVisibility

RouteStyle

  • Represents a style configuration for the routes. The properties related to the active route (i.e. the properties prefixed with “active”) also apply to the selected route during the route planning phase. During instance construction, certain input values are checked against the range of values expected for that field (e.g., width values must be non-negative).

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct RouteStyle

RouteTrafficIncidentStyle

  • Style configuration for on-route traffic. During instance construction, certain input values are checked against the range of values expected for that field (e.g., width values must be non-negative).

    Default assets such as fonts and icons are bundled into the framework. You only need to provide files for assets that you want to customize. To customize marker and icon images, replace the default image files in your application’s bundle(Bundle.main) with new versions. The custom image files must have the same name as the default image files provided within the library. See the table below.

    Magnitude of Delay Asset File Path
    MagnitudeOfDelay.unknown Marker base icon all categories except road works marker_traffic_bg_base
    MagnitudeOfDelay.unknown Marker base icon for the road works category marker_traffic_roadworks_bg_base
    MagnitudeOfDelay.unknown Marker icon for the road works category ic_map_roadworks
    MagnitudeOfDelay.unknown Marker icon for the unknown category ic_map_info
    MagnitudeOfDelay.minor Marker base icon marker_traffic_minor_bg_base
    MagnitudeOfDelay.minor Marker icon for the road works category ic_map_minor_roadworks
    MagnitudeOfDelay.minor Marker icon for the unknown category ic_map_minor_info
    MagnitudeOfDelay.moderate Marker base icon marker_traffic_moderate_bg_base
    MagnitudeOfDelay.moderate Marker icon for the road works category ic_map_moderate_roadworks
    MagnitudeOfDelay.moderate Marker icon for the unknown category ic_map_moderate_info
    MagnitudeOfDelay.major Marker base icon marker_traffic_major_bg_base
    MagnitudeOfDelay.major Marker icon for the road works category ic_map_major_roadworks
    MagnitudeOfDelay.major Marker icon for the unknown category ic_map_major_info
    MagnitudeOfDelay.indefinite Marker base icon marker_traffic_road_closed_bg_base
    MagnitudeOfDelay.indefinite Marker icon for the road closed category ic_map_road_closed

    Since vector images are not supported, it is recommended to add every size of the image to the bundle.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct RouteTrafficIncidentStyle
  • Represents a style configuration for the elements of the navigation visualization. When no arguments are provided to the constructor, it constructs the default style configuration.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct StyleConfiguration

Traffic Incident

  • Represents a traffic incident.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public struct TrafficIncident