Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3070 from duckduckgo/zaahir/w3w-improve-directions
Browse files Browse the repository at this point in the history
What3Words: Use latLng array so directions points to lat,lon instead of address
  • Loading branch information
moollaza authored Dec 15, 2016
2 parents bf45b95 + ec2f325 commit 435e4c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions share/spice/what3words/what3words.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 435e4c2

Please sign in to comment.