Welcome!

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

Reply
Trusted Contributor
jayvd
Posts: 185
Registered: ‎04-07-2013
My Carrier: Telus
Accepted Solution

QGeoBoundingArea??

Hi, what is a QGeoBoundingArea?

 

I need to do some geocoding, so I need a QGeoBoundingArea in the parameter

 

QGeoSearchReply *searchReply=searchManager->reverseGeocode(myQGeoCoordinate, myQGeoBoundingArea);

 

How do I get an instance of or create an instance of a QGeoBoundingArea?

 

Thanks!!

jayvdiyk.com
Please use plain text.
Developer
kamalakshan
Posts: 107
Registered: ‎06-12-2012
My Carrier: Loop

Re: QGeoBoundingArea??

Usually its used as a base class for classes which specify geographic area. So you will have to subclass it and create your class with geographic area descriptions and pass it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Please use plain text.
Trusted Contributor
jayvd
Posts: 185
Registered: ‎04-07-2013
My Carrier: Telus

Re: QGeoBoundingArea??

Thanks for the explanation
jayvdiyk.com
Please use plain text.
BlackBerry Development Advisor
jehrismann
Posts: 67
Registered: ‎10-15-2012
My Carrier: Telus

Re: QGeoBoundingArea??

Though it is not clear from the documentation, the QGeoBoundingArea * parameter to reverseGeocode() has a default value of 0 (look in include/QtLocationSubset/qgeosearchmanager.h). If you do not wish to restrict the search to some bounding area simply call reverseGecode() like this:

 

QGeoSearchReply *searchReply=searchManager->reverseGeocode(myQGeoCoordinate);

 

If you do wish to restrtict the search to a given boundary you can instantiate and populate a QGeoBoundingBox or a QGeoBoundingCircle object, which are subclasses of QGeoBoundingArea, and pass its pointer to reverseGeocode().

Please use plain text.