Geo::OSM::Primitive::Node - Abstract base class for the Open Street Map data primitive node.
…
The idea is to encapsulte methods that use OpenStreetMap data (that is possibly stored in Geo::OSM::DBI.
my $osm_node = Geo::OSM::Primitive::Node->new($osm_node_id, $lat, $lon);
my $lat = $node->lat();
Return the lattitude of the node.
my $lon = $node->lon();
Return the longitude of the node.
The source code is on github. Meaningful pull requests are welcome.
To install Geo::OSM::Primitive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::OSM::Primitive
CPAN shell
perl -MCPAN -e shell install Geo::OSM::Primitive
For more information on module installation, please visit the detailed CPAN module installation guide.