OpenStreetMap logo OpenStreetMap

Convert osm data to poi : osm2poi

Posted by tibob on 4 December 2009 in English.

As I needed some extra POI (DM supermarkets in Germany) in my GPS (Tomtom One), I started developing a small python script that reads an osm xml file and produces POI files from its content : osm2poi

The work is still in progress, but as it is already usable to produce openlayer compatible files, I released version 0.1 today. If you want to try, you can download it on https://sourceforge.net/projects/osm2poi/files/osm2poi_0.1.tgz/download . You will need Python and python-xml (and also gpsbabel to produce .kml files). I did not test it on windows (yet).

Comments, wishes and help are welcome ;-)

Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Comment from giggls on 4 December 2009 at 19:56

Looking at the scripts in the POI_list directory I think you should allow for regular expressions in the value part of the key/value tuples. Furthermore it would be nice to be able to declare classes of e.g. banks and extract them as a single POI type.

The reason why I think this would be nice is that while looking at the bank.py script I was wondering if it would be possible to add code to extract all the banks where I can get money without paying an additional fee. Examples for such classes in germany would be alliances like "cash-pool" or "cash-group"

Comment from tibob on 4 December 2009 at 20:33

Hi Sven,

Regular expressions are already allowed in the value part, see cars.py as an example.

For the classes of banks, I commited an example in bank.py : https://sourceforge.net/apps/trac/osm2poi/browser/trunk/POI_list/bank.py

I also documented the POI_list syntax, also in trunk.

Cheers,

tibob

Comment from giggls on 4 December 2009 at 20:49

Hm, looks like I owe you a patch now...

Log in to leave a comment