OpenRailwayMap / OpenRailwayMap-api

Experimental rewrite of the OpenRailwayMap API in Python
GNU General Public License v3.0
21 stars 2 forks source link

Search does not find Halt with name "Ohin" #5

Open rwf-rr opened 7 months ago

rwf-rr commented 7 months ago

The following request, captured with the Chrome browser developer tools, does not find the halt named Ohin. It returns an empty list.

https://api.openrailwaymap.org/v2/facility?name=Ohin

However, overpass-turbo finds the same halt (in OSM):

  <node id="11298243608" lat="50.7259619" lon="-122.1963510">
    <tag k="description" v="Ohin halt and station, CN (ex BC Rail) Squamish sub. MP 143.6. Not in CN timetable."/>
    <tag k="name" v="Ohin"/>
    <tag k="network" v="Kaoham Shuttle"/>
    <tag k="old_railway_operator" v="BC Rail"/>
    <tag k="operator" v="Canadian National"/>
    <tag k="public_transport" v="station"/>
    <tag k="railway" v="halt"/>
    <tag k="source" v="BC Rail 1995 Condensed Profile"/>
    <tag k="train" v="yes"/>
  </node>

A neighbouring halt, named Shalalth, is found.

  <node id="7003190320" lat="50.7287714" lon="-122.2199350">
    <tag k="description" v="Shalalth halt and station, CN (ex BC Rail) Squamish sub. MP 142.4. Not in CN Timetable."/>
    <tag k="name" v="Shalalth"/>
    <tag k="network" v="Kaoham Shuttle"/>
    <tag k="old_railway_operator" v="BC Rail"/>
    <tag k="operator" v="Canadian National"/>
    <tag k="public_transport" v="station"/>
    <tag k="railway" v="halt"/>
    <tag k="source" v="BC Rail 1995 Condensed Profile"/>
    <tag k="train" v="yes"/>
  </node>

I have tried modifying the Ohin node, including changing the name. It did not have an effect. I did not try to delete and recreate the node.

My speculation is that for some reason the node is not added to the search-table.

piaulous commented 5 months ago

I had the same experience with: https://api.openrailwaymap.org/v2/facility?name=Pocinho Pocinho is terminus station of Linha do Douro in Portugal so a rather "important" station. Anyways thanks for the reimplementation so far! Once this issue will be fixed the API will be absolutely usable for my purpose (--: