Closed tillwenke closed 1 month ago
odd behavior, could not figure out why: after viewing a spot that has a hitchwiki link, this link displays as well for all other spots even if they do not have a hitchwiki link. @bopjesvla do you have an idea why this happens?
I don't know, but ideally we'd do the linking automatically. Many Hitchwiki articles have lat lon information we can parse. The database is freely available.
I don't see how we could link automatically. I checked Berlin, Amsterdam, Paris for which no coordinates are available for "Hitching out spots".
Amsterdam has coordinates: <map lat='52.38278242102423' lng='4.90844612121582' zoom='11' view='3'/>
Ideally, we'd provide this map.
To link to Hitchwiki pages from Hitchmap: download the Hitchwiki db dump and extract all of the coordinates. Then, for every spot near one of those coordinates, link the page.
This does not reflect what I am trying to achieve.
There are specific spots that are described in the hitchwiki. usually for a city there are main directions. each direction can have various options. like https://hitchwiki.org/en/Dresden#Option_1 - this mentions 2 particular spots that (in this case) are kindly liked to hitchmap spots. So there is a whole high quality detailed description of those spots on hitchwiki that we currently do not make available to hitchmap users. this pr is a first step towards leveraging this information and connecting map and wiki.
review after #73