Geo::OSM::DBI::Primitive::Relation - Derivation of Geo::OSM::Primitive::Relation and "<Geo::OSM::DBI::Primitive ">, to be used with Geo::OSM::DBI.
SYNOPSIS
…
OVERVIEW
…
METHODS
new
my $osm_dbi = Geo::OSM::DBI->new(…);
new($osm_relation_id, $osm_dbi);
members
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.
my $elem = shift @members;
my $primitive = $elem->{mem};
my $role = $elem->{rol};
COPYRIGHT and LICENSE
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
SOURCE CODE
The source code is on github. Meaningful pull requests are welcome.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 6:
L<> starts or ends with whitespace