sorry for the inconvenience.
it now works after properly restarting everything.
best greetings,
daniel
Am Dienstag, 23. September 2014 07:56:16 UTC+2 schrieb Daniel Böhringer:
>
> no problem when running the same code in morbo.
> i am on the latest mojolicious on macos ML
> any hints?
> many thanks and best greetings,
> daniel
>
> this is my code:
>
>
> ...
>
> my $ua = Mojo::UserAgent->new;
>
> $ua->proxy->http(proxy_string);
>
> my $data=$ua->get("
> http://maps.googleapis.com/maps/api/distancematrix/json?origins=".lc
> $address."&destinations=xxx+yyy")->res->body;
>
> my $json_decoder= Mojo::JSON->new;
>
> my $jsonR = $json_decoder->decode($data );
>
> my $dist = $jsonR->{rows}->[0]->{elements}->[0]->{distance}->{text};
>
> $dist=~s/[^\.0-9]+//ogs;
>
> $self->render(text => $dist);
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.