Qt includes all kinds of nice positioning and location things, unfortunately they are not allowed in Jolla store yet, but it seems to be allowed to talk directly with geoclue trough D-Bus. Examples? Oh nonono. So after a loot of searching I found a blog post describing what you need to do and combined that to a simple Hello World GPS application.

Hello GPS was born.

It is a very basic app, just displayes the GPS data and nothing more.

Hello GPS!

Hello GPS is a basic GPS Hello World app, showing basic GPS information. The applications main purpose is the source, showing how to access GPS data trough D-Bus from GeoClue.

Why ?

This was the only way to access GPS information in a harbour sanctioned way. Since update " (Äijänpäivänjärvi)" you are allowed to use the Qt provied QtLocation and QtPositioning APIs.