| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | def get_area_boundary() -> str: |
||
| 2 | return """ |
||
| 3 | [out:json][timeout:500]; |
||
| 4 | |||
| 5 | area["ISO3166-1"="HU"] |
||
| 6 | // area["admin_level"="8"]["name"="Hegyeshalom"] |
||
| 7 | -> .country; |
||
| 8 | |||
| 9 | """ |
||
| 10 | |||
| 11 | |||
| 12 | def get_route_relations() -> str: |
||
| 13 | # future: replace lines below when https://github.com/drolbr/Overpass-API/issues/146 is closed |
||
| 14 | # relation["route"="railway"]["ref"]["operator"~"(^MÁV(?=;))|((?<=;)MÁV(?=;))|((?<=;)MÁV$)"](area.country); |
||
| 15 | # relation["route"="railway"]["ref"]["operator"~"(^GYSEV(?=;))|((?<=;)GYSEV(?=;))|((?<=;)GYSEV$)"](area.country); |
||
| 16 | return """ |
||
| 17 | ( |
||
| 25 |