Created
October 20, 2015 03:21
-
-
Save avantassel/4b9903b2c3d09d3a8daf to your computer and use it in GitHub Desktop.
What 3 Words Strongloop Datasource
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"w3w": { | |
"name": "w3w", | |
"connector": "rest", | |
"operations": [ | |
{ | |
"template": { | |
"method": "GET", | |
"url": "http://api.what3words.com/position/", | |
"headers": { | |
"accepts": "application/json", | |
"content-type": "application/json" | |
}, | |
"query": { | |
"position": "{lat},{lng}", | |
"lang": "en", | |
"key": "" | |
}, | |
"responsePath": "$.words" | |
}, | |
"functions": { | |
"geoword": [ | |
"lat", | |
"lng" | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's how to call it from a Strongloop Model with a vow promise