Added new Attractions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
soraefir
2023-06-18 17:23:11 +02:00
parent bf4ba27381
commit 524a71e391
3 changed files with 4 additions and 3 deletions

View File

@ -53,7 +53,8 @@ const query_flight = (q) => axios.get('/api/flight/'+q).then(res=>res.data)
const is_restauration_type = e => ["restaurant", "cafe", "pub", "bar", "fast_food", "food_court"].indexOf(e.type)!=-1;
const is_attraction_type = e => ["tourism", "leisure", "place", "amenity", "highway"].indexOf(e.category)!=-1;
const is_attraction_type = e => (["tourism", "leisure", "place", "amenity", "highway", "historic", "natural", "waterway"].indexOf(e.category)!=-1 ||
["place_of_worship", "national_park", "nature_reserve", "protected_area"].indexOf(e.type!=-1));
const icon_type = (item)=>{
let t = item.type