From ec2f325ad2e7c06e31c2461caf67076d13d8c60c Mon Sep 17 00:00:00 2001 From: Zaahir Moolla Date: Wed, 7 Dec 2016 16:37:42 -0500 Subject: [PATCH] use latLng array so directions points to lat,lon instead of address --- share/spice/what3words/what3words.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/spice/what3words/what3words.js b/share/spice/what3words/what3words.js index ee2b92f01a..a2b10265dc 100644 --- a/share/spice/what3words/what3words.js +++ b/share/spice/what3words/what3words.js @@ -38,8 +38,7 @@ data: { showDirections: true, name: api_result.words, - lat: api_result.geometry.lat, - lon: api_result.geometry.lng, + latLng: [ api_result.geometry.lat, api_result.geometry.lng ], displayLatLon: api_result.geometry.lat + ", " + api_result.geometry.lng, address: address_string },