Иван Петров
Иван Петров

Reputation: 547

How to extract osm poi categories

This is an example of osm xml:

  <node id="1000" ...>
...
    <tag k="shop" v="supermarket"/>
  </node>

  <node id="26999673" ...>
...
    <tag k="public_transport" v="station"/>
    <tag k="railway" v="station"/>
    <tag k="train" v="yes"/>
  </node>

I know that "shop", "railway", "station" are poi categories, because I am human. But how can I extract them by script?

Upvotes: 0

Views: 3639

Answers (2)

dkiselev
dkiselev

Reputation: 940

You can try this: https://github.com/kiselev-dv/gazetteer it will generate JSON with addresses, and pois also with address. Pois are categorized according to https://github.com/kiselev-dv/osm-doc so you can define your own POI types.

Upvotes: 2

scai
scai

Reputation: 21479

That entirely depends on your interpretation of POI which is a very broad term.

Mappers in OSM are allowed to use any tags they like. Consequently there is no such thing as a POI category. But there are many frequently used tags of which most are documented at the map features wiki page.

Upvotes: 1

Related Questions