From 3f0f046c30093ad1febb62b7ec70bfc60d080112 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 27 Nov 2017 11:36:21 +0000 Subject: [PATCH] added location info to main map --- lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm b/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm index 73efcf3..2ca7ebc 100644 --- a/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm +++ b/lib/Pear/LocalLoop/Controller/Api/V1/Supplier/Location.pm @@ -91,6 +91,9 @@ sub index { latitude => $_->{organisation}->{latitude} * 1, longitude => $_->{organisation}->{longitude} * 1, name => $_->{organisation}->{name}, + street_name => $_->{organisation}->{street_name}, + town => $_->{organisation}->{town}, + postcode => $_->{organisation}->{postcode}, } } $org_rs->all ];