NAME

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

VERSION

version 0.05

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) 2018 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.