
HTTP::MobileAgent::Plugin::Locator - Handling mobile location information plugin for HTTP::MobileAgent

use CGI;
use HTTP::MobileAgent;
use HTTP::MobileAgent::Plugin::Locator;
$q = CGI->new;
$agent = HTTP::MobileAgent->new;
# get location is Geo::Coordinates::Converter::Point instance formatted wgs84
# ./t/* has many examples.
$location = $agent->get_location( $q );
# or
$location = $agent->get_location( { lat => '35.21.03.342',
lon => '138.34.45.725',
geo => 'wgs84' } );
# or
$location = $agent->get_location( $q, { locator => $LOCATOR_GPS } );
# get latitude and longitude
print "lat is " . $location->lat;
print "lng is " . $location->lng;

return Geo::Coordinates::Converter::Point instance formatted if specify gps or basic location parameters sent from carrier. The parameters are different by each carrier.
This method accept a Apache instance, CGI instance or hashref of query parameters.
select locator class algorithm option.
$LOCATOR_AUTO_FROM_COMPLIANT auto detect locator from gps compliant. This is default.
$LOCATOR_AUTO auto detect locator class from params.
$LOCATOR_GPS select GPS class.
$LOCATOR_BASIC select BasicLocation class.
returns if the agent is GPS compliant.

for iArea data support.
for GPS data support.
for basic location information data support.
for EZnavi data support.
for basic location information data support.
for GPS data support.
for basic location information data support.

There is request template using Template in eg directory and mod_rewrite configuration for ezweb extraordinary parameter handling.

Yoshiki Kurihara <kurihara __at__ cpan.org> with many feedbacks and changes from:
Tokuhiro Matsuno E<lt>tokuhiro __at__ mobilefactory.jpE<gt> Masahiro Chiba E<lt>chiba __at__ geminium.comE<gt>

HTTP::MobileAgent, Geo::Coordinates::Converter, Geo::Coordinates::Converter::Point, Geo::Coordinates::Converter::iArea, http://coderepos.org/share/log/lang/perl/HTTP-MobileAgent-Plugin-Locator/

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.