Extract Location of the user
I am new to Qt, can you please share some samples of how can i extract the Latitude/Longitude information for an user ? I did check the documentation for "GeoLocation":http://doc.qt.nokia.com/qtmobility/qml-geolocation.html but it did not make much sense to me, so please share any sample / working code...
I am looking forward to a solution in QML.. or if it is not possible in QML then will i have to do something in C++ and then send data to QMLs ???
Welcome to forum,
I am not much into QML , but in doc, seen GeoLocation.Latitude and GeoLocation.Longitude elements. And both are type double.
Have you tried any of those location "examples":http://doc.qt.nokia.com/qtmobility/all-examples.html?
Thanks for the link. But they are mostly on C++ not QML :(
Anyway i did find the solution:
userLocation.latitude = position.coordinate.latitude
userLocation.longitude = position.coordinate.longitude
[EDIT: code formatting, please wrap in @-tags, Volker]
Cool :) So, it is solved :) Happy new year, and happy coding..