Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poi service not working for no additional osm tags #363

Closed
TheGreatRefrigerator opened this issue Jun 12, 2021 · 1 comment
Closed

poi service not working for no additional osm tags #363

TheGreatRefrigerator opened this issue Jun 12, 2021 · 1 comment

Comments

@TheGreatRefrigerator
Copy link
Contributor

TheGreatRefrigerator commented Jun 12, 2021

When pois without osm_tags are returned, console error because variable osmTags is undefined due to no check if osm_tags are actually there

@TheGreatRefrigerator TheGreatRefrigerator changed the title poi service not working poi service not working for no additional osm tags Jun 13, 2021
@TheGreatRefrigerator
Copy link
Contributor Author

TheGreatRefrigerator commented Jun 13, 2021

Example vending machine
returns as :

{
	"7": {
		"type": "Feature",
		"geometry": {
			"type": "Point",
			"coordinates": [
				8.692216,
				49.40434
			]
		},
		"properties": {
			"osm_id": 8671377598,
			"osm_type": 1,
			"distance": 0,
			"category_ids": {
				"528": {
					"category_name": "vending_machine",
					"category_group": "shops"
				}
			}
		}
	}
}

as the only additional tag to amenity=vending_machine is vending=parking_tickets which does not get picked up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant