Getting QGeoAddress from QGeoPositionInfo ?
-
Hey guys i'm writing a small Application with the QtMobility 1.0 Geo Api.
How can i get the QGeoAddress from QGeoPositionInfo of the positionUpdated Signal?greetings
-
QtMobility 1.0 doesn't have the QGeoAddress yet, it comes with version 1.1.
There's no automatic way to convert QGeoCoordinate got from QGeoPositionInfo in update to QGeoAddress, but it can be done using some external geocoding service. -
Ah, well i tried to install the 1.1 version, but i got some linker errors. Maybe it's still a dead header there.
Allright, thanks for your answer. Can you suggest me an external geocoding service?Greetings
-
I've used none of these myself, but at least Google has a maps Javascript API with good instructions how to use the geocoding service right here: http://www.developer.com/lang/jscript/article.php/3615681
Yahoo! has a REST API here: http://developer.yahoo.com/maps/rest/V1/geocode.html
I guess googling will list more services which you can look more carefully and select one which has a best API (and right language) considering your application :) -
Thank you very much :)
-
Qt Mobility 1.1 comes with geocoding, so you should be able to use that directly in any app that has access to QGeoAddress.
See http://doc.qt.nokia.com/qtmobility-1.1.0/location-overview.html#geocoding-and-searching-for-places
-
Wow that's awesome! I guess it uses pre-installed Ovi Maps on device and does not need internet connection?
-
The current plugin uses the online Ovi services. There's work being done on an offline plugin.
-
That's one of my problems. I don't want to go online with my app. I need an offline method ;)