More place type improvements
This commit is contained in:
@@ -25,7 +25,6 @@ export default class OsmService extends Service {
|
|||||||
const signal = this.controller.signal;
|
const signal = this.controller.signal;
|
||||||
|
|
||||||
const typeKeys = [
|
const typeKeys = [
|
||||||
'amenity',
|
|
||||||
'amenity',
|
'amenity',
|
||||||
'shop',
|
'shop',
|
||||||
'tourism',
|
'tourism',
|
||||||
@@ -36,6 +35,7 @@ export default class OsmService extends Service {
|
|||||||
'building',
|
'building',
|
||||||
'landuse',
|
'landuse',
|
||||||
'public_transport',
|
'public_transport',
|
||||||
|
'highway',
|
||||||
'aeroway',
|
'aeroway',
|
||||||
];
|
];
|
||||||
const typeKeysQuery = [`~"^(${typeKeys.join('|')})$"~".*"`];
|
const typeKeysQuery = [`~"^(${typeKeys.join('|')})$"~".*"`];
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ export function getPlaceType(tags) {
|
|||||||
tags.amenity ||
|
tags.amenity ||
|
||||||
tags.shop ||
|
tags.shop ||
|
||||||
tags.tourism ||
|
tags.tourism ||
|
||||||
tags.leisure ||
|
|
||||||
tags.historic ||
|
tags.historic ||
|
||||||
|
tags.leisure ||
|
||||||
tags.office ||
|
tags.office ||
|
||||||
tags.craft ||
|
tags.craft ||
|
||||||
tags.building ||
|
tags.building ||
|
||||||
@@ -49,6 +49,7 @@ export function getPlaceType(tags) {
|
|||||||
tags.place ||
|
tags.place ||
|
||||||
tags.natural ||
|
tags.natural ||
|
||||||
tags.public_transport ||
|
tags.public_transport ||
|
||||||
|
tags.highway ||
|
||||||
tags.aeroway ||
|
tags.aeroway ||
|
||||||
tags.waterway ||
|
tags.waterway ||
|
||||||
tags.border_type ||
|
tags.border_type ||
|
||||||
|
|||||||
Reference in New Issue
Block a user