Parse ORS turn instructions and generate our own ones from it.
Retrieving localized instructions from ORS for a couple of (atm 28) languages is possible, but the list cannot be queried and the somewhat complicated needed fall-back behavior lead to regressions earlier (bug 296382, bug 247339). Instead query english instructions now, parse them and generate our own instructions for them (localized). This means that we can cover more languages now and (more important) can indicate the turn type correctly, which enables voice guidance for ORS (previously only a sound could be played). The drawback is that once ORS changes the english instructions, parsing will fail, so we'd be back at not localized instructions at that point. Still better than having no route at all, of course. CCBUG: 296382
parent
7b65f425
Please register or sign in to comment