NAME

A Factory for creating WWW::EFA::Coordinates objects.

SYNOPSIS

my $factory = WWW::EFA::CoordinatesFactory->new();

METHODS

coordinates_from_XY

Method to extract the coordinates from an element with x and y attributes

my $coordinates = $factory->coordinates_from_XY( $doc->findnodes( 'itdDeparture' ) );

Expects an XML::LibXML::Element of XML like this:

<itdDeparture stopID="8" x="11535078.00000" y="48143035.00000" mapName="WGS84" area="5" platform="" platformName="" stopName="Donnersbergerbrücke" nameWO="Donnersbergerbrücke" countdown="1"> ... </itdDeparture>

Returns a WWW::EFA::Coordinates object

coordinates_from_itdPathCoordinates

Method to extract the coordinates from an itdPathCoordinates element

my $coordinates = $factory->coordinates_from_itdPathCoordinates( $doc->findnodes( 'itdPathCoordinates' ) );

Expects an XML::LibXML::Element of XML like this:

<itdPathCoordinates> <coordEllipsoid>WGS84</coordEllipsoid> <coordType>GEO_DECIMA"coordType" <itdCoordinateString decimal="." cs="," ts="&#x20;">11529230.00000,48140331.00000</itdCoordinateString> </itdPathCoordinates>

COPYRIGHT

Copyright 2011, Robin Clarke, Munich, Germany

AUTHOR

Robin Clarke <perl@robinclarke.net>

1 POD Error

The following errors were encountered while parsing the POD:

Around line 28:

Non-ASCII character seen before =encoding in 'stopName="Donnersbergerbrücke"'. Assuming UTF-8