On 2/21/2019 10:30 PM, jyc emea wrote:
Hi, thanks for your link... but in my 1st post the json code was already extracted from the same page :) https://mozilla.github.io/ichnaea/api/geolocate.html#api-geolocate-latest
Sorry I missed that. I didn't recognize the example JSON code with the string "macAddressDatasFromNodeRedjavascript" replacing "01:23:45:67:89:ab".
I'am not able to integrate this API code in my function node... to get the position.
What do you mean by "integrate this API code"? Is your code able to send HTTP requests to https://location.services.mozilla.com/v1/geolocate?key=test and get a JSON response back from the server?
You can use "test" as the MLS API key for your personal development, but you can email me directly to get a real API key if you will have more users.
To test that MLS is working for your location, you can send an empty request to the server (such as opening "https://location.services.mozilla.com/v1/geolocate?key=test" in your browser). If you don't include any Wi-Fi MAC addresses, MLS will try to return your location using GeoIP.
_______________________________________________ dev-geolocation mailing list dev-geolocation@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-geolocation