why does online version of Brouter display "error - from-position not mapped"

77 views
Skip to first unread message

Andrew Heard

unread,
Feb 3, 2015, 4:09:01 PM2/3/15
to osm-android...@googlegroups.com
Sometimes I get this red error message at top of screen. I had zoomed right in, and placed a source/ destination point correctly on a known road. It seems the only way to fix is to reload the web page, which is annoying because I then have to navigate back to the correct place, and try to click on the source/ destination point again. Generally it then works OK.

Norbert Renner

unread,
Feb 4, 2015, 8:35:56 AM2/4/15
to osm-android...@googlegroups.com
The Permalink you posted in the other thread [1] has longitude values of around -212.5 which is outside the usual -180 to 180 range and probably causes this error.

The map library Leaflet has a continuous map, so you can pan to Tasmania to the left and to the right. But when you pan to the left you end up on a "copy" of the world with the "wrong" coordinates. I think I need to fix that by setting worldCopyJump=true [2].

Thanks for reporting.

[1] http://brouter.de/brouter-web/#zoom=17&lat=-42.834646&lon=-212.51242&layer=OpenStreetMap&lonlats=-212.512858,-42.831785|-212.509747,-42.832659&nogos=&profile=trekking&alternativeidx=0&format=geojson
[2] http://leafletjs.com/reference.html#map-worldcopyjump

abre...@googlemail.com

unread,
Feb 4, 2015, 8:57:17 AM2/4/15
to osm-android...@googlegroups.com
In the case where it does not work, you are sending a longitute of -212, but it should be 148 (that is, in the range -180...180)

It really depends on how you "travel" from Europe to Tansmania: going west-bound (via America) you get negative lonitutes, going east-bound, you get positive...

I should be able to fix that by making brouter accept (and correct) such "flip-over" longitutes, but for the time beeing you can just create a permalink on tasmania once you have it right.

abre...@googlemail.com

unread,
Feb 7, 2015, 6:05:26 AM2/7/15
to osm-android...@googlegroups.com


Am Mittwoch, 4. Februar 2015 14:35:56 UTC+1 schrieb Norbert Renner:
 
 I think I need to fix that by setting worldCopyJump=true [2].

I deployed your changed version of Brouter-Web on the brouter.de/brouter-web instance and it works correct now.

Andrew Heard

unread,
Feb 7, 2015, 8:01:51 PM2/7/15
to osm-android...@googlegroups.com
Thanks Norbert and abre for both your comments. Yes, in the past I have simply zoomed right out and then randomly zoomed in either right or left to Tasmania. When I panned to the east just now it worked OK - thank you.

I then zoomed out, panned to west, zoomed in, and yes it works there too.

However now I have an identical issue with the brouter app in conjunction with the Android Locus app. I have the latest brouter file E145_S40.rd5. When I plot two track points in Locus in Tasmania & get brouter to calculate the route I get the error message "from-position not mapped"

So then I plotted two track points in Locus in France & get brouter to calculate the route and there is no problem - the route is correctly calculated.

Any suggestions?

abre...@googlemail.com

unread,
Feb 8, 2015, 4:17:29 AM2/8/15
to osm-android...@googlegroups.com


Am Sonntag, 8. Februar 2015 02:01:51 UTC+1 schrieb Andrew Heard:
 
However now I have an identical issue with the brouter app in conjunction with the Android Locus app. I have the latest brouter file E145_S40.rd5.
..
Any suggestions?

 I think that should be E145_S45.rd5.

Also down-under the filename needs to be the south-east corner of your square, so to cover latitue -42.8 you need S45.

For the new version of the app I just changed the error message to include the missing filename.

Andrew Heard

unread,
Feb 8, 2015, 4:48:46 PM2/8/15
to osm-android...@googlegroups.com
Thank you so much - my misunderstanding - I incorrectly thought I needed the file name for north-east corner of the square.
Reply all
Reply to author
Forward
0 new messages