René Nyffenegger

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.