#!/usr/bin/perl -w

=head1 NAME

example-track - Net::GPSD::Server::Fake example with linear producer

=cut

use strict;
use lib qw{./lib ../lib};
use Net::GPSD::Server::Fake;
use Net::GPSD::Server::Fake::Track;

my $port=shift()||2947;
my $server=Net::GPSD::Server::Fake->new(port=>$port)
               || die("Error: Cannot create server object.");

my $track=Net::GPSD::Server::Fake::Track->new(lat=>38.865826,
                                              lon=>-77.108574,
                                              speed=>2500,
                                              heading=>45.3);

$server->start($track);
