DJTommek / better-location

Telegram bot for parsing and generating various of location formats.
https://t.me/BetterLocationBot
MIT License
7 stars 2 forks source link

Mapy.cz service - fix location from searching #70

Open DJTommek opened 3 years ago

DJTommek commented 3 years ago

If GET parameter q= is available, run search via Mapy.cz API (https://pro.mapy.cz/search) and get result(s) as would mapy.cz shown. Currently is q= completely ignored - second example below incorrectly leads into only one location, which is map center.

Examples:

  1. https://en.mapy.cz/turisticka?q=Orlov%C3%A1
  2. Real example from iQuest 2021: https://mapy.cz/s/fujovanehe
  3. https://mapy.cz/s/fujovanehe (same URL as above, but simplified and decoded URLs)

Waiting to https://github.com/DJTommek/mapycz-api/issues/1.