Add OpenRailwayMap: Infrastructure and Maxspeeds layers

Grzegorz Nowak shared this idea 3 years ago
Collecting votes

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

Comments (5)

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>