View on
MetaCPAN
René Nyffenegger > Geo-OSM-Primitive-0.01 > Geo::OSM::Primitive::Node

Download:
Geo-OSM-Primitive-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source  

Geo::OSM::Primitive::Node - Abstract base class for the Open Street Map data primitive node.

SYNOPSIS ^

OVERVIEW ^

The idea is to encapsulte methods that use OpenStreetMap data (that is possibly stored in Geo::OSM::DBI.

METHODS ^

new

    my $osm_node = Geo::OSM::Primitive::Node->new($osm_node_id, $lat, $lon);

lat

    my $lat = $node->lat();

Return the lattitude of the node.

lon

    my $lon = $node->lon();

Return the longitude of the node.

Copyright 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.

syntax highlighting: