You might get some mileage looking at the GDAL implementation of its OSM driver. https://www.gdal.org/drv_osm.html.
Alternately, the ogr2ogr utility can be used to convert the file to some other format (e.g. here) that you could parse more easily, but you can also read the data directly in perl using Geo::GDAL::FFI::Dataset (providing your GDAL is compiled with OSM support - I have not checked if it is by default).
In reply to Re: OpenStreetMap API : Worker and Plugins architecture
by swl
in thread OpenStreetMap API : Worker and Plugins architecture
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |