Creates a parser object

my $parser = Geo::Openstreetmap::Parser->new( node => \&process_node, ... );

sub process_node {
    my ($obj) = @_;
    ...
}

Callbacks are possible for any tag, but useful for osm primitives: node way relation

Callback function receives hash with params: attr - hash with xml attributes tag - hash with osm tags nd - array of node_ids (for ways) member - array of hashes like { type => 'way', role => 'from', ref => '-1' } (for relations)

Parses XML input, executing defined callback functions for OSM objects

$parser->parse( *STDIN );

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 14:

Unknown directive: =method

Around line 48:

Unknown directive: =method