WebService::PublicViewpointsThe Perl API to access the public-viewpoints geo-webservice | |
Download |
WebService::PublicViewpoints Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Kang-min Liu
- Publisher web site:
- http://search.cpan.org/~gugod/
WebService::PublicViewpoints Tags
WebService::PublicViewpoints Description
The Perl API to access the public-viewpoints geo-webservice WebService::PublicViewpoints is a Perl module to access the public-viewpoints geo-webservice available at http://public-viewpoints.appspot.com. Each viewpoint is basically a camera shoting at something.To use it, invoke its `find` class method with constraints: my @points = WebService::PublicViewpoints->find(num => 10, country => "JP");The possibile constraint key-values are:* num: At least 1, the maximum number of results.* random: "true" or "false".* latitude, longitude: The viewpoints around this location are wanted.* country_code: UK, US, JP, DE, FR.. etc.* city: The city name, like "Miami".The find method returns a list of point objects, so you catch them in an array. Each point object has these attributes:* url: The URL of camera image.* country_code: UK, US, JP, DE, FR.. etc.* country: The name of the associated country_code.* state: The state abbrevation for US.* city: The city name.* lat: The latitude of this camera image.* lng: The longitude of this camera image.The detail of the feasible contry/city values are unknown due to the lack of documentation of the origianl application site.This work is a based on the work of public-viewpoints service at http://public-viewpoints.appspot.comSYNOPSIS use WebService::PublicViewpoints; my @points = WebService::PublicViewpoints->find(num => 10, country => "JP"); for (@points) { say $->lat, $_->lng, $_->url; } Requirements: · Perl
WebService::PublicViewpoints Related Software