Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 24, 2024
1 parent b183df0 commit 12a9705
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/map/LocationButton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styles from './LocationButton.module.css'
import { onCurrentLocationButtonClicked } from '@/map/MapComponent'
import Dispatcher from '@/stores/Dispatcher'
import {SetBBox, SetPoint, ZoomMapToPoint} from '@/actions/Actions'
import { SetBBox, SetPoint, ZoomMapToPoint } from '@/actions/Actions'
import { getBBoxFromCoord, QueryPoint, QueryPointType } from '@/stores/QueryStore'
import LocationError from '@/map/location_error.svg'
import LocationSearching from '@/map/location_searching.svg'
Expand Down
22 changes: 18 additions & 4 deletions src/pois/AddressParseResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ export class AddressParseResult {
{ k: 'poi_car_rental', q: ['amenity=car_rental', 'amenity=car_sharing'], i: 'car_rental' },
{ k: 'poi_car_repair', q: ['shop=car', 'shop=car_repair'], i: 'car_repair' },
{ k: 'poi_bus_stops', q: ['highway=bus_stop'], i: 'train' },
{ k: 'poi_cafe', q: ['amenity=cafe', 'amenity=restaurant and cuisine=coffee_shop', 'amenity=internet_cafe'], i: 'restaurant' },
{
k: 'poi_cafe',
q: ['amenity=cafe', 'amenity=restaurant and cuisine=coffee_shop', 'amenity=internet_cafe'],
i: 'restaurant',
},
{ k: 'poi_charging_station', q: ['amenity=charging_station'], i: 'charger' },
{ k: 'poi_cinema', q: ['amenity=cinema'], i: 'cinematic_blur' },

Expand Down Expand Up @@ -236,15 +240,25 @@ export class AddressParseResult {
{ 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_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_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', 'natural=spring'], i: 'water_drop' },
{ k: 'poi_wifi', q: ['internet_access=* and internet_access!=no', 'amenity=internet_cafe'], i: 'wifi' },

].map(v => {
const queries = v.q.map(val => {
return new POIAndQuery(
Expand Down

0 comments on commit 12a9705

Please sign in to comment.