Skip to content

Commit

Permalink
poi: more triggers and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 24, 2024
1 parent 6d396ec commit b183df0
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/layers/UsePOIsLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ import local_post_office from '../pois/img/local_post_office.svg'
import location_city from '../pois/img/location_city.svg'
import luggage_svg from '../pois/img/luggage.svg'
import museum_svg from '../pois/img/museum.svg'
import police from '../pois/img/police.svg'
import pedal_bike from '../pois/img/pedal_bike.svg'
import police from '../pois/img/police.svg'
import pool from '../pois/img/pool.svg'
import recycling from '../pois/img/recycling.svg'
import restaurant_svg from '../pois/img/restaurant.svg'
import school_svg from '../pois/img/school.svg'
import sports_handball_svg from '../pois/img/sports_handball.svg'
Expand Down Expand Up @@ -61,9 +63,11 @@ const svgObjects: { [id: string]: any } = {
museum: museum_svg(),
pedal_bike: pedal_bike(),
police: police(),
recycling: recycling(),
restaurant: restaurant_svg(),
school: school_svg(),
sports_handball: sports_handball_svg(),
pool: pool(),
store: store_svg(),
train: train_svg(),
universal_currency_alt: universal_currency_alt_svg(),
Expand Down
5 changes: 4 additions & 1 deletion src/pois/AddressParseResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,20 @@ export class AddressParseResult {
i: 'train',
},
{ k: 'poi_railway_station', q: ['railway=station', 'railway=halt'], i: 'train' },
{ k: 'poi_recycling', q: ['amenity=recycling'], i: 'recycling' },
{ k: 'poi_restaurants', q: ['amenity=restaurant'], i: 'restaurant' },
{ k: 'poi_schools', q: ['amenity=school', 'building=school'], i: 'school' },
{ k: 'poi_shopping', q: ['shop=*'], i: 'store' },
{ k: 'poi_shop_bakery', q: ['shop=bakery'], i: 'store' },
{ k: 'poi_shop_butcher', q: ['shop=butcher'], i: 'store' },
{ k: 'poi_super_markets', q: ['shop=supermarket', 'building=supermarket'], i: 'store' },
{ k: 'poi_swim', q: ['natural=beach', 'sport=swimming', /* not always properly tagged 'leisure=swimming_pool and access!=private'*/], i: 'pool' },
{ k: 'poi_toilets', q: ['amenity=toilets'], i: 'home_and_garden' },
{ k: 'poi_tourism', q: ['tourism=*'], i: 'luggage' },
{ k: 'poi_townhall', q: ['amenity=townhall'], i: 'location_city' },
{ k: 'poi_transit_stops', q: ['highway=bus_stop', 'railway=tram_stop', 'public_transport=platform', 'railway=platform'], i: 'train' },
{ k: 'poi_viewpoint', q: ['tourism=viewpoint'], i: 'visibility' },
{ k: 'poi_water', q: ['amenity=drinking_water'], i: 'water_drop' },
{ k: 'poi_water', q: ['amenity=drinking_water', 'natural=spring'], i: 'water_drop' },
{ k: 'poi_wifi', q: ['internet_access=* and internet_access!=no', 'amenity=internet_cafe'], i: 'wifi' },

].map(v => {
Expand Down
1 change: 1 addition & 0 deletions src/pois/img/pool.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pois/img/recycling.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b183df0

Please sign in to comment.