Bug 273884 - Pedestrian/cycle routing does not work
Summary: Pedestrian/cycle routing does not work
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0 (KDE 4.6)
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-22 19:31 UTC by Tomas Straupis
Modified: 2012-05-20 13:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Straupis 2011-05-22 19:31:40 UTC
Version:           unspecified (using KDE 4.6.3) 
OS:                Linux

When I choose pedestrian or cycle routing Marble is unable to calculate the route (car routing works)

Reproducible: Always

Steps to Reproduce:
1. Choose routing type "cycle" or "pedestrian".
2. Add two points to the map.
alternatively
1. Leave routing type "car" as it is chosen by default
2. Add two points to the map (route is calculated)
3. Change routing type to "cycle" or "pedestrian"

Actual Results:  
"No route found" is displayed...

Expected Results:  
Route using footways, cycleways etc. is calculated.

I've tried choosing different routing service providers, tried adjusting parameters for each provider but all in vain.
If required (if you cannot reproduce this) I can give more detailed description of which routing services are enabled and with which options.
Comment 1 Tomas Straupis 2011-05-22 19:33:17 UTC
Marble version 1.1.0
Comment 2 Dennis Nienhüser 2011-05-23 08:06:59 UTC
Currently we don't provide offline maps for bike and pedestrian routing. Only the OpenRouteService backend works out of the box, but it is limited to Europe. Make sure Marble is not set to Offline mode when using it.
Did you try to create routes in Europe? I got results from OpenRouteService for both bike and pedestrian routing in Latvia some minutes ago. Sometimes their server is down however and doesn't provide results. That's another possible error source. One way to test for that (only an indicator, not always right) is to try their website directly (openrouteservice.org) and see if that returns results.
Comment 3 Tomas Straupis 2011-05-23 09:52:28 UTC
I was doing online routing in Lithuania and then in London. Today I've tried with English language switched on and pedestrian/cycle routing did work. So apparently that is a problem of lithuanian translation, some keywords which are sent to routing services are translated?...

Maybe I've translated "too much"... will try to guess what I should "untranslate" (any help would be appreciated).

Running
LANG=lt_LT.UTF-8;marble
makes pedestrian/cycle routing stop working...
Comment 4 Dennis Nienhüser 2011-05-23 10:19:07 UTC
Good catch, thanks for tracking it down. The OpenRouteService backend is indeed localized, though it has a fallback to use english if the localized request does not work. Sounds like either that does not fully work or there is a regression. I'll look into it in more detail in the next days.
Comment 5 Dennis Nienhüser 2011-05-23 23:23:06 UTC
I looked into it and found the source of the problem: While refactoring the routing code to become plugin based in Marble 1.0, the support to detect the missing localization support in OpenRouteService (which is returned in an error message) was lost. I'll work on a fix, i.e. parse the error message, detect localization errors and then request a route with english locale in that case. The problem is not translation requested, the localization strings are determined automatically, yet OpenRouteService only supports an (unknown) subset of all languages.

If you're interested to add the missing translation to OpenRouteService (just a handful of strings), please take a look at http://wiki.openstreetmap.org/wiki/OpenRouteService/Instructions for details. Thanks :)
Comment 6 Tomas Straupis 2011-05-24 09:21:24 UTC
Thank you. I've added lithuanian translation:
http://wiki.openstreetmap.org/wiki/OpenRouteService/Instructions/lt_LT
Comment 7 Dennis Nienhüser 2012-05-20 13:09:02 UTC
Should be working now, just tested with Marble from KDE 4.8.4.