in reply to Re^4: How to make Geo::Coder::Google run even if input location doesn't exist
in thread How to make Geo::Coder::Google run even if input location doesn't exist
Maybe you shouldn't try to get longitude and latitude when you already know that you didn't get a valid response?
I recommend the following structure:
if ($@){ print "Couldn't get location\n"; } else { ... retrieve and print longitude, latitude }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to make Geo::Coder::Google run even if input location doesn't exist
by M15U (Acolyte) on Mar 01, 2013 at 09:44 UTC | |
by AnomalousMonk (Archbishop) on Mar 01, 2013 at 16:03 UTC | |
by AnomalousMonk (Archbishop) on Mar 01, 2013 at 17:14 UTC | |
by M15U (Acolyte) on Mar 04, 2013 at 17:08 UTC |