NAME

HTTP::MobileAgent::Plugin::Location::Support - Add flag of supporting location fuctions or not to HTTP::MobileAgent

VERSION

This document describes HTTP::MobileAgent::Plugin::Location::Support version 0.0.2

SYNOPSIS

use HTTP::MobileAgent::Plugin::Location::Support;

my $ma = HTTP::MobileAgent->new;

# Is this terminal support any location functions?
if ($ma->support_location) { ... }

# Is this terminal support gps?
if ($ma->support_gps) { ... }

# Is this terminal support position from sector?
if ($ma->support_sector) { ... }

# Is this terminal support i-area?
if ($ma->support_area) { ... }

DESCRIPTION

HTTP::MobileAgent::Plugin::Location::Support is a plugin module of HTTP::MobileAgent, which implements method to check whether terminal supports location function or not.

CONFIGURATION AND ENVIRONMENT

In DoCoMo and SoftBank, information of supporting gps or not is not include in UserAgent or HTTP headers. So, data table of gps supporting terminals will have to be update. You can set data to environment variable $ENV{DOCOMO_GPSMODELS} and $ENV{SOFTBANK_GPSMODELS}, as string list of terminal name.

Formats are like below:

$ENV{DOCOMO_GPSMODELS} = <<EOF;
F661i
F505iGPS
D905i
F905i
N905i
P905i
SH905i
SO905i
N905imyu
F883iES
D904i
F904i
N904i
P904i
SH904i
D903i
F903i
N903i
P903i
SO903i
SA800i
EOF

$ENV{SOFTBANK_GPSMODELS} = <<EOF;
910T
810T
811T
812T
813T
911T
912T
V903T
V904T
V904SH
EOF

DEPENDENCIES

HTTP::MobileAgent::Plugin::XHTML

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests to nene@kokogiko.net.

AUTHOR

OHTSUKA Ko-hei <nene@kokogiko.net>

LICENCE AND COPYRIGHT

Copyright (c) 2007, OHTSUKA Ko-hei <nene@kokogiko.net>. All rights reserved.

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

DISCLAIMER OF WARRANTY

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.