Palm::Magellan::NavCompanion

Access the Magellan GPS Companion waypoints file
Download

Palm::Magellan::NavCompanion Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • brian d foy
  • Publisher web site:
  • http://search.cpan.org/~bdfoy/

Palm::Magellan::NavCompanion Tags


Palm::Magellan::NavCompanion Description

Access the Magellan GPS Companion waypoints file Palm::Magellan::NavCompanion is a Perl module that gives you access to the waypoints in the Magellan's GPS Companion "Companion Waypoints.pdb" file. You have to be able to load that file, which probably means that you have it on your computer rather than your Palm. On my machine, this file shows up in the Palm directory as Palm/Users/..user../Backups/Companion Waypoints.pdb .Behind-the-scenes, Palm::PDB does all the work, so this module has part of its interface and data structure. For instance, the Load() method accesses and parses the file and returns the general data structure that Palm::PDB creates. The interesting bits (the waypoints) is an anonymous array which is the value for the key records. # an anonymous array my $waypoints = $pdb->{records};Each element in @{ $waypoints } is an object of class Palm::Magellan::NavCompanion::Record, which is really just a class of accessor methods (for now).SYNOPSIS use Palm::Magellan::NavCompanion; my $pdb = Palm::Magellan::NavCompanion->new; $pdb->Load( $file ); my $waypoints = $pdb->{records}; $, = ", "; foreach my $wp ( @$waypoints ) { print $wp->name, $wp->latitude, $wp->longitude; print " "; } Requirements: · Perl


Palm::Magellan::NavCompanion Related Software