06-29-2013 06:17 AM
Hi, what is a QGeoBoundingArea?
I need to do some geocoding, so I need a QGeoBoundingArea in the parameter
How do I get an instance of or create an instance of a QGeoBoundingArea?
Solved! Go to Solution.
06-29-2013 06:49 AM
07-02-2013 11:35 AM
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:
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().