The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

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:

Source Code

The source code is on github. Meaningful pull requests are welcome.