PfisterDaniel / node-red-contrib-apple-find-me

Node to get the current locations and other metrics of connected Apple devices.
MIT License
22 stars 5 forks source link

Altitude always zero #23

Closed na-am closed 2 years ago

na-am commented 2 years ago

I just wanted to implement the altitude in my flows/database but unforunately it's always showing zero in the payload. two ipads and an iphone showing every time zero. It doesn't matter what type of "positionType" is set (WiFi or GPS).

Besides... the app "node-PAD" https://apps.apple.com/us/app/node-pad/id1534470128 is able to determine the altitude with the integrated location node very precisely: image

PfisterDaniel commented 2 years ago

Hello, yes, the altitude is always zero. That's how it comes from Apple. It's the same for me with all my devices iPhone, iPad, Mac's and Apple Watches...

PfisterDaniel commented 2 years ago

Hello, in the next Release i will integrate following API: OPEN-ELEVATION

na-am commented 2 years ago

thx Daniel, in the meantime i made a workaround with https://api.opentopodata.org/v1/eudem25m?locations=47,8 just put lat and lon of the device of your choice into a flow variable in a function node after the "Locate my device" node flow_lat_lon_2_alt.txt :

Dunnenj commented 2 years ago

Is it possible to also implement vertical accuracy as it looks like this is not available in the OPEN-ELEVATION API.

PfisterDaniel commented 2 years ago

In the next release I added the OpenElevation API and the Altitude is populated. The next release will come in the next few days.

PfisterDaniel commented 2 years ago

@Dunnenj If I find an API for this that I can use to determine or calculate the vertical accuracy, I will of course also implement this.

PfisterDaniel commented 2 years ago

Fixed with release 1.1.8