From 26046ce44d03cbaa9e832ea54730a757ea660268 Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Thu, 2 May 2024 13:30:02 -0400 Subject: [PATCH] Set lng as well as long in the output --- Changes | 1 + lib/Geo/Coder/Free/MaxMind.pm | 1 + lib/Geo/Coder/Free/OpenAddresses.pm | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Changes b/Changes index 20c068a0..37887b3d 100644 --- a/Changes +++ b/Changes @@ -6,6 +6,7 @@ Revision history for Geo-Coder-Free Added "exact" to OpenAddresses.pm Local.pm - remove empty fields Install bin/address_lookup + Set lng as well as long in the output 0.35 Wed Mar 6 20:48:43 EST 2024 Fix scantext.t when OSM is installed diff --git a/lib/Geo/Coder/Free/MaxMind.pm b/lib/Geo/Coder/Free/MaxMind.pm index b1a2046c..0b9400fe 100644 --- a/lib/Geo/Coder/Free/MaxMind.pm +++ b/lib/Geo/Coder/Free/MaxMind.pm @@ -191,6 +191,7 @@ sub geocode { return Geo::Location::Point->new({ 'lat' => $rc->{'latitude'}, 'long' => $rc->{'longitude'}, + 'lng' => $rc->{'longitude'}, 'location' => $location, 'database' => 'MaxMind' }); diff --git a/lib/Geo/Coder/Free/OpenAddresses.pm b/lib/Geo/Coder/Free/OpenAddresses.pm index 1370a8f7..f69631dc 100644 --- a/lib/Geo/Coder/Free/OpenAddresses.pm +++ b/lib/Geo/Coder/Free/OpenAddresses.pm @@ -255,6 +255,7 @@ sub geocode return Geo::Location::Point->new({ 'lat' => $rc->{'latitude'}, 'long' => $rc->{'longitude'}, + 'lng' => $rc->{'longitude'}, 'location' => $location, 'database' => 'OpenAddresses' }); @@ -936,6 +937,7 @@ sub _get { $rc = Geo::Location::Point->new({ 'lat' => $rc->{'latitude'}, 'long' => $rc->{'longitude'}, + 'lng' => $rc->{'longitude'}, 'location' => $location, 'database' => 'OpenAddresses' });