tambeta / rmkmapper

Fetch and display Estonian State Forest Management Centre's recreational objects
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

English version #1

Open trakais opened 5 years ago

trakais commented 5 years ago

Hi! If I understand correctly, this code relies heavily on the Estonian language version of the site, since all the parsing stuff is hardcoded in estonian. Any plans for a universal parser, with option to select english? Now it seems I have to translate a lot of the variables like laiuskraad to longitude, but there is a lot I don't understand, like Vaatamisväärsused :) I don't speak estonian.

Should I try manually, or there is an english upgrade planned?

tambeta commented 5 years ago

Hi! There is no upgrade planned for the foreseeable future, I mostly consider this an archived project.

That said, the whole web scraping approach is not necessary. loodusegakoos.ee is based on the Voog platform and uses the concept of Elements to encode and display the points of interest. Meaning that one could pull all POIs via the API (example query) (note that you can set the language_code parameter). This would probably entail a full re-write of the scraper (possibly in a less esoteric language than Perl), but it would be simpler an less fragile for sure.

P.S. dodies.lv is superb and Estonian hiking trails would be a great addition. These should be easy to add thanks to the Voog API.

trakais commented 5 years ago

Thanks, this is also useful. I will think about how to use it for my purpose :) I am making a community project with all the trails/picnic sites in the baltics. I have Latvia covered, now looking for Estonian data. Check out dodies.lv