NAME

WWW::EFA::LocationFactory - A Factory for creating WWW::EFA::Location objects.

VERSION

Version 0.01

SYNOPSIS

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

ATTRIBUTES

TODO: RCL 2012-01-22 Documentation

METHODS

location_from_odvNameElem

Returns a WWW::EFA::Location object

my $location = $factory->location_from_odvNameElem( $itd_odv->findnodes( 'odvNameElem' ) );

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

<odvNameElem x="11534639.00000" y="48142484.00000" mapName="WGS84" stopID="8" value="8:1" isTransferStop="0" matchQuality="100000">Donnersbergerbrücke</odvNameElem>

location_from_itdOdvAssignedStop

Same as location_from_odvNameElem because these are basically the same XML, but different element name.

location_from_coordInfoItem

Returns a WWW::EFA::Location object

my $location = $factory->location_from_coordInfoItem( $itd_odv->findnodes( 'coordInfoItem' ) );

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

<coordInfoItem type="STOP" id="64" name="Barthstraße" addName="" omc="9162000" placeID="1" locality="München" gisLayer="SYS-STOP" gisID="64" distance="190" stateless="64"> <itdPathCoordinates> <coordEllipsoid>WGS84</coordEllipsoid> <coordType>GEO_DECIMA"coordType" <itdCoordinateString decimal="." cs="," ts="&#x20;">11529230.00000,48140331.00000</itdCoordinateString> </itdPathCoordinates> <genAttrList> <genAttrElem> <name>STOP_NAME_WITH_PLACE </name> <value>Barthstraße</value> </genAttrElem> <genAttrElem> <name>STOP_MAJOR_MEAN/name <value>4</value> </genAttrElem> </genAttrList> </coordInfoItem>

location_from_itdPoint

Returns a WWW::EFA::Location object

my $location = $factory->location_from_itdPoint( $doc->findnodes( 'itdPoint' ) );

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

<itdPoint stopID="64" area="20" platform="18H19" name="Barthstraße" nameWO="Barthstraße" platformName="" usage="departure" x="11529096.00000" y="48140348.00000" mapName="WGS84" omc="9162000" placeID="1" locality="München"> </itdPoint>

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 48:

Non-ASCII character seen before =encoding in 'matchQuality="100000">Donnersbergerbrücke</odvNameElem>'. Assuming UTF-8