Description
Spoken instructions for an arrive
step should include the name of the waypoint. In typical SDK usage, the developer supplies a Waypoint.name
that’s either the name of a point of interest or an address. The user would find it very useful to hear the address when arriving at the destination. Arriving at a named waypoint is a basic use case, so the SDK should handle it without requiring any developer intervention.
Currently, the arrival instructions come from the Directions API, like any other instruction. In the absence of Directions API support for this feature, the SDK would need to ignore the arrive
step’s SpokenInstruction
objects in favor of its own homegrown instruction strings. For localization, we have two options:
- Translate the arrival instructions as part of this SDK’s Transifex project. The strings will be somewhat redundant with OSRM Text Instructions. We won’t be able to take advantage of the grammar support in OSRM Text Instructions, which would be very unfortunate for Russian, because declination is required for the waypoint name.
- Add named waypoint strings to OSRM Text Instructions and depend on OSRM Text Instructions for Swift once again. Russian declination would need to be fixed in Apply grammar rules to token replacement values Project-OSRM/osrm-text-instructions.swift#49.
/cc @mapbox/navigation-ios @mapbox/guidance