Skip to content

Commit

Permalink
Separate horse riding and horse racing POI types (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Jun 9, 2024
1 parent 859f6e7 commit 376392e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions leaflet/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"golfcourse": "Golf",
"hockey": "Hockey",
"horseracing": "Pferderennen",
"horseriding": "Reiten",
"icehockey": "Eishockey",
"soccer": "Fußball",
"sportscentre": "Sportzentrum",
Expand Down
1 change: 1 addition & 0 deletions leaflet/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"golfcourse": "Golf",
"hockey": "Hockey",
"horseracing": "Horse racing",
"horseriding": "Horse riding",
"icehockey": "Ice hockey",
"soccer": "Soccer",
"sportscentre": "Sports centre",
Expand Down
3 changes: 2 additions & 1 deletion leaflet/src/overpass/overpass-presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export function getAllOverpassPresets(): OverpassPresetCategory[] {
{ key: "gymnastics", query: "(way[sport=gymnastics];node[sport=gymnastics];rel[sport=gymnastics];)", label: i18n.t("overpass-presets.gymnastics") },
{ key: "golfcourse", query: "(way[leisure=golf_course];way[sport=golf];node[leisure=golf_course];node[sport=golf];rel[leisure=golf_course];rel[sport=golf];)", label: i18n.t("overpass-presets.golfcourse") },
{ key: "hockey", query: "(way[sport=hockey];node[sport=hockey];rel[sport=hockey];way[sport=field_hockey];node[sport=field_hockey];rel[sport=field_hockey];)", label: i18n.t("overpass-presets.hockey") },
{ key: "horseracing", query: "(way[sport=horse_racing];way[sport=equestrian];node[sport=horse_racing];node[sport=equestrian];)", label: i18n.t("overpass-presets.horseracing") },
{ key: "horseracing", query: "nwr[sport=horse_racing]", label: i18n.t("overpass-presets.horseracing") },
{ key: "horseriding", query: "(nwr[sport=equestrian];nwr[leisure=horse_riding];)", label: i18n.t("overpass-presets.horseriding") },
{ key: "icehockey", query: "(way[sport=ice_hockey];node[sport=ice_hockey];rel[sport=ice_hockey];way[leisure=ice_rink];node[leisure=ice_rink];)", label: i18n.t("overpass-presets.icehockey") },
{ key: "soccer", query: "(way[sport=soccer];node[sport=soccer];rel[sport=soccer];)", label: i18n.t("overpass-presets.soccer") },
{ key: "sportscentre", query: "(way[leisure=sports_centre];node[leisure=sports_centre];rel[leisure=sports_centre];)", label: i18n.t("overpass-presets.sportscentre") },
Expand Down

0 comments on commit 376392e

Please sign in to comment.