Skip to content

Unlocalized error when requesting route between waypoints that are too far apart #514

@dmiluski

Description

@dmiluski

To provide better feedback to our users, we are using DirectionError to display actionable feedback to users when they have created a route that is not routable.

Example
Screen Shot 2021-01-27 at 3 08 51 PM

Unfortunately, this uses a static string to display content which assumes km. On searching GitHub, I haven't been able to find the source of this text, so assuming it is being returned

invalidInput(message: Optional("Total distance between all coordinates cannot exceed 10000km"))

Ideally, we would either be able to:

  • Localize the distance formatting by use of a DistanceFormatter (respecting device preference)
    or
  • Define a known error case, where the App or SDK could format the distance based on user preference

Given the result appears to represent any input error, it's unlikely an app could perform this inference alone.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions