GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GEO::COORDINATES::CONVERTER::FORMAT::IAREA (3)

.ds Aq ’

NAME

Geo::Coordinates::Converter::Format::IArea - get center point from iArea

CONTENTS

SYNOPSIS

GET CENTER POINT FROM AREA CODE


  use Geo::Coordinates::Converter;
  use Geo::Coordinates::Converter::iArea;

  my $geo = Geo::Coordinates::Converter->new( format => iarea, areacode => 00205 );
  my $point = $geo->convert(degree => wgs84);
  print "lat: ", $point->lat, " lng: ", $point->lng, "\n";
  # => lat: 42.859220 lng: 141.492367



GET AREACODE FROM LOCATION POINT


  use Geo::Coordinates::Converter;
  use Geo::Coordinates::Converter::iArea;

  my $geo = Geo::Coordinates::Converter->new( format => degree, datum => tokyo, lat => 42.859220, lng => 141.492367 );
  my $point = $geo->convert(iarea);
  print $point->areacode, "\n";
  # => 00205



INTEGRATE WITH HTTP::MobileAgent::Plugin::Locator


  use Geo::Coordinates::Converter;
  use Geo::Coordinates::Converter::iArea;
  use CGI;
  use HTTP::MobileAgent;
  use HTTP::MobileAgent::Plugin::Locator;

  my $q = CGI->new();
  my $agent = HTTP::MobileAgent->new();
  my $orig_point = $agent->get_location($q);
  my $geo = Geo::Coordinates::Converter->new( point => $orig_point->clone );
  my $point = $geo->convert(iarea);
  print $point->areacode, "\n";
  # => 00205



DESCRIPTION

Geo::Coordinates::Converter::Format::IArea is utilities for DoCoMo iArea.

easy to get the center point of area.

ADDITIONAL METHODS FOR Geo::Coordinates::Converter core.

Geo::Coordinates::Converter->areacode() areacode accessor
Geo::Coordinates::Converter::Point->areacode() areacode accessor

INTERNAL METHODS

name
detect
from
to DO NOT USE DIRECTLY

AUTHOR

Kazuhiro Osawa, Tokuhiro Matsuno

SEE ALSO

Geo::Coordinates::Converter::iArea, Location::Area::DoCoMo::iArea

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GEO::COORDINATES::CONVERTER::FORMAT::IAREA (3) 2011-01-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.