windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
262 stars 116 forks source link

accuracy of location message #177

Closed RogierQ closed 3 years ago

RogierQ commented 3 years ago

Hi!

Is there an accuracy available of the location message? Or is this also missing in the base message from telegram?

Now i have some strange spikes in my location updates. Would be great if i can filter them based on accuracy

windkh commented 3 years ago

The location is provided as lat lon by the client. There is no additional info in the message that you can use on the receiver‘s side to improve that. Sorry

RogierQ commented 3 years ago

Thanks! Then it is time for a message to telegram ;-)

windkh commented 3 years ago

I would be interested in the outcome. Keep me informed, please.

RogierQ commented 3 years ago

Sure i do Karl!

windkh commented 3 years ago

https://core.telegram.org/bots/api#location that type of object is stored inside msg.originalMessage.

you should check if any of the optional fields is set in your case... maybe there isxa chance to gather some values from there

RogierQ commented 3 years ago

Cool! I try that when the rain has stopt outside ;-)