Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Google decoder

by McA (Priest)
on Sep 10, 2013 at 06:59 UTC ( #1053175=note: print w/replies, xml ) Need Help??


in reply to Google decoder

The following should do it:

my $lat = $location->{'geometry'}->{'location'}->{'lat'};

UPDATE: I hit the same error as you. The follwoing should make it clear after reformatting:

'geometry' => { 'viewport' => { 'southwest' => { 'lat' => '47.0860081197085', 'lng' => '8.2563233197085' }, 'northeast' => { 'lat' => '47.0887060802915', 'lng' => '8.2590212802915' } }, 'location' => { 'lat' => '47.0873571', 'lng' => '8.2576723' }, 'location_type' => 'ROOFTOP' }

McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053175]
help
Chatterbox?
and the questions are moot...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-03-30 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (359 votes). Check out past polls.