| 1 | package Geo::Coder::Role::Geocode; | ||
| 2 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | requires 'geocode_local'; | |
| 4 | 1 | requires 'reverse_geocode_local'; | |
| 5 | |||
| 6 | #has 'ua' =>( | ||
| 7 | # is => 'ro', | ||
| 8 | # 'default' => sub {HTTP::Tiny->new(agent=> 'Geo::Coder::All');} | ||
| 9 | #); | ||
| 10 | # | ||
| 11 | #sub get { | ||
| 12 | # my $self = shift; | ||
| 13 | # my $uri = shift; | ||
| 14 | # my $response = $self->ua->get($uri); | ||
| 15 | # #TODO: add actual error message from uri | ||
| 16 | # croak "Request Failed" unless $response->{success}; | ||
| 17 | # return $response->{content}; | ||
| 18 | #} | ||
| 19 | 1 | 1; | |
| 20 | |||