Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

QGeoServiceProvider provider name ?

Hi all,


I want to do reverse geocoding in my application, I write this code :


QGeoSearchManager *searchManager = 0;
QGeoServiceProvider serviceProvider("provider name");

if (serviceProvider.error() == QGeoServiceProvider::NoError) 
       searchManager = serviceProvider.searchManager();
       qDebug() << "error" << serviceProvider.errorString();

 I can't found if Blackberry give a provider for this.


If anyone get an idea.


Thanks !

Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
BlackBerry Development Advisor
Posts: 68
Registered: ‎10-15-2012
My Device: Z10

Re: QGeoServiceProvider provider name ?

You can find out the provider names by calling  the static method QGeoServiceProvider::availableServiceProviders(). Under BB10 there is currently only one so you could simply instantiate the first and only one in the list:


QStringList serviceProviders = QtMobilitySubset::QGeoServiceProvider::availableServiceProviders();
if ( serviceProviders.size() ) {

// here just use the first one in the list
serviceProvider = new QtMobilitySubset::QGeoServiceProvider( serviceProviders.at(0) );






The name is BbGeoServices, in case you want to use it explicitly. it is documented here: https://developer.blackberry.com/cascades/reference/qtmobilitysubset__qgeoserviceprovider.html#qgeos...