Geo::OSM::DBI::Primitive::Relation - Derivation of Geo::OSM::Primitive::Relation and "<Geo::OSM::DBI::Primitive ">, to be used with Geo::OSM::DBI.
…
my $osm_dbi = Geo::OSM::DBI->new(…); new($osm_relation_id, $osm_dbi);
my @members = $rel->members();
Returns the members of the relation. The returned elements are hashes with the keys rol (role of the member) and mem (the member itself, a node, way or a relation.
rol
mem
my $elem = shift @members; my $primitive = $elem->{mem}; my $role = $elem->{rol};
Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at: http://www.perlfoundation.org/artistic_license_2_0
The source code is on github. Meaningful pull requests are welcome.
1 POD Error
The following errors were encountered while parsing the POD:
L<> starts or ends with whitespace
To install Geo::OSM::DBI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::OSM::DBI
CPAN shell
perl -MCPAN -e shell install Geo::OSM::DBI
For more information on module installation, please visit the detailed CPAN module installation guide.