Mark Allen > WebService-Geocodio-0.04 > WebService::Geocodio::Request

Download:
WebService-Geocodio-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

WebService::Geocodio::Request - A request role for Geocod.io

VERSION ^

version 0.04

ATTRIBUTES ^

ua

A user agent object. Default is HTTP::Tiny

base_url

The base url to use when connecting to the service. Default is 'http://api.geocod.io'

METHODS ^

send_forward

This method POSTs an arrayref of data to the service for processing. If the web call is successful, returns an array of WebService::Geocodio::Location objects.

Any API errors are fatal and reported by Carp::confess.

send_reverse

This method POSTs an arrayref of data to the service for processing. If the web call is successful, returns an array of WebService::Geocodio::Location objects.

Any API errors are fatal and reported by Carp::confess.

AUTHOR ^

Mark Allen <mrallen1@yahoo.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Mark Allen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: