Add OpenRailwayMap: Infrastructure and Maxspeeds layers

Grzegorz Nowak shared this idea 7 years ago
Gathering feedback

I wonder if it is possible to add a layer OpenRailwayMap - http://wiki.openstreetmap.org/wiki/OpenRailwayMap?

Replies (8)

photo
1

Hi,


thank you for idea. Honestly this map is quite interesting but on the other hand Locus is mainly outdoor app for hiking and cycling. But I keep this idea open maybe other users will vote for it.

It seems that map can be used for free and you could add this map manually into Locus. Please see how to add custom map: http://docs.locusmap.eu/doku.php?id=manual:advanced:customization:online_maps&s But please be sure that you fits the terms of use of OpenRailway service.


Thank you

Petr

photo
1

Hi Petr,


Abandoned and razed railway lines provide useful paths for hikers to follow. Openrailway map is the best resource for locating these routes.


Regards

photo
photo
3

Hi,

can anyone with more experiance than my person add a describtion how to add openrailwaymaps to locus pro?

I will use openrailwaymaps as an overlay for planning trips.

The manual (the link above) is shure for experts, but not for normal users ...

Thank you and best regards

photo
2

Hi,

I'd also like to use this map overlay to stay close to public transport when paragliding. I've read the Custom Online Maps help section, and got quite far but not everything is clear to me. This is the openrailwaymap.xml file I put in /CARD_ROOT/Locus/mapsOnline/custom/, I can see and select the map. However, tiles are failing to load.


<?xml version="1.0" encoding="UTF-8"?>
    <providers>
       <provider id="1050" type="0" visible="true" required="true" background="-1">
          <name>OSM</name>
          <mode>OpenRailwayMap</mode>
          <url><![CDATA[http://{s}.tiles.openrailwaymap.org/standard/standard/{z}/{x}/{y}.png]]></url>;
          <serverPart>a;b;c</serverPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>10</zoomMin>
          <zoomMax>27</zoomMax>
          <tileSize>512</tileSize>
          <tileScale dpi="0" multi="2.0" replace="19" />
          <countries>World</countries>
          <usage>cycle,hiking,city,aero,overlay,road,transport</usage>
       </provider>
    </providers>
Some stuff I'm not sure about:

- zoomPart: There is a short explanation about how to convert zoom values, but it is not clear to me how to do this. Is it different for 512x512px tiles? Or should it always be {z}-8?

- zoomMin, zoomMax: I do get these set correctly, to 2-19 (offset by 8). In "info" Locus correctly displays this.

- tileSize: the tiles returned are 512x512px, so this should be 512, right?

- tileScale: The description of this parameter is very short. What is multi factor? What is "replace"?


Would be very nice if some Locus dev can help with this!


Regards,

Fons

photo
1

Hi,

Please see the comment https://help.locusmap.eu/topic/strava-heatmap-requires-now-authentification-at-higher-zoom#comment-70872 where is explained the issue you're facing. Please set the tileSize to 256 and add parameter 'v={ts}' into URL.

BR Petr

photo
2

Thanks for the explanation!

photo
photo
2

Great! Guys, thanks for the tips!

Default railway layer visualizing infrastructure now works for me:

<?xml version="1.0" encoding="UTF-8"?>

<providers>

<provider id="1050" type="0" visible="true" required="true" background="-1">

<name>OSM</name>

<mode>OpenRailwayMap</mode>

<url><![CDATA[http://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png?v={ts}]]></url>; <--remove this semicolon

<serverPart>a;b;c</serverPart>

<zoomPart>{z}-8</zoomPart>

<zoomMin>10</zoomMin>

<zoomMax>27</zoomMax>

<tileSize>256</tileSize>

<tileScale dpi="0" multi="2.0" replace="19" />

<countries>World</countries>

<usage>cycle,hiking,city,aero,overlay,road,transport</usage>

</provider>

</providers>

photo
1

Unfortunately this did not work for me.

Could you provide further informations or the xml file?

photo
1

What is it that doesn't work, specifically? The XML by Grzegorz just above works fine for me, I tested it just now (see attached image). Note that you need to follow the instructions and remove the semicolon (and trailing text part). You might also need to go/zoom to an area covered by the map data.

photo
1

It was my fault, i follow the instructions exactly and i have deleted only the ";"

That i have to delete everything behind the ";" is not clear for me.


Now everything works fine.

Leave a Comment
 
Attach a file