Re: [SailfishDevel] Measuring distance with GPS

2014-07-08 Thread Tomasz Sterna
Dnia 2014-07-08, wto o godzinie 21:32 +0200, Caliste Damien pisze: > - if you sum up the distance between GPS fix at regular intervals > (some seconds), you may end up with a total distance that is greater > than the actual distance, especially because of some portions of your > path that are not v

Re: [SailfishDevel] Measuring distance with GPS

2014-07-08 Thread Martin Kolman
Oops, forgot the link: [0] https://lists.sailfishos.org/pipermail/devel/2014-January/002819.html ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Measuring distance with GPS

2014-07-08 Thread Martin Kolman
8.7.2014 21:32, Caliste Damien: Hello, Le lundi 07 juillet 2014, Timur Kristóf a écrit : I'd like to ask a simple question: what is the simplest way to make a Sailfish app that measures the distance the user has walked. Answers have been already given on how to do this in C++ or in QML. I just

Re: [SailfishDevel] Measuring distance with GPS

2014-07-08 Thread Caliste Damien
Hello, Le lundi 07 juillet 2014, Timur Kristóf a écrit : > I'd like to ask a simple question: what is the simplest way to make a > Sailfish app that measures the distance the user has walked. Answers have been already given on how to do this in C++ or in QML. I just would like to add some remarks

Re: [SailfishDevel] Measuring distance with GPS

2014-07-08 Thread Timur Kristóf
Thank you guys for the awesome answers! Cheers, Timur On Tue, Jul 8, 2014 at 12:21 AM, Martin Kolman wrote: > 7.7.2014 20:13, Timur Kristóf: > > Hi, > > I'd like to ask a simple question: what is the simplest way to make a > Sailfish app that measures the distance the user has walked. Prefer

Re: [SailfishDevel] Measuring distance with GPS

2014-07-07 Thread Martin Kolman
7.7.2014 20:13, Timur Kristóf: Hi, I'd like to ask a simple question: what is the simplest way to make a Sailfish app that measures the distance the user has walked. Preferably using QML only, but I'm not afraid of writing QML code either. Just use the QtPositioning QML interface[0], it should

Re: [SailfishDevel] Measuring distance with GPS

2014-07-07 Thread Krisztian Olah
Hi Niels and Kristof, You can just link QtPositioning, if you are using C++ you can use QGeoCoordinate::distanceTo(const QGeoCoordinate &), there is an equivalent for QML, check out: http://qt-project.org/doc/qt-5/qml-coordinate.html#distanceto It's probably gonna be faster than whatever you ca

Re: [SailfishDevel] Measuring distance with GPS

2014-07-07 Thread Niels Christian Ørgaard
Hi Timur, I was literally googling something similar earlier today (contemplating a quick health-app), and came across this: http://qt-project.org/forums/viewthread/19189 You should be able to just compare current and previous location, and calculate distance between these; if you do this at regu

[SailfishDevel] Measuring distance with GPS

2014-07-07 Thread Timur Kristóf
Hi, I'd like to ask a simple question: what is the simplest way to make a Sailfish app that measures the distance the user has walked. Preferably using QML only, but I'm not afraid of writing QML code either. Thanks, Timur ___ SailfishOS.org Devel maili