GeoLocation
#include <bb/platform/geo/GeoLocation>
To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesmaps
A location in geographic space that represents a latitude and longitude coordinate, and is visually represented on the map using its Marker attribute.
See Geographic for information on object ownership and reference types.
BlackBerry 10.0.0
Inheritance
| bb::platform::geo::Geographic | ||
| bb::platform::geo::GeoLocation | ||
Properties Index
Public Functions Index
| GeoLocation (const QString &id, QObject *parent=0) | |
| GeoLocation (double lat=0, double lon=0, QObject *parent=0) | |
| GeoLocation (const QString &id, const QString &name, const bb::platform::geo::Point &location, QObject *parent=0) | |
| virtual | ~GeoLocation () |
| bb::platform::geo::Point | point () const |
| bool | setPoint (const bb::platform::geo::Point &point) |
| double | altitude () const |
| bool | setAltitude (double alt) |
| bb::platform::geo::AltitudeMode::Type | altitudeMode () const |
| bool | setAltitudeMode (bb::platform::geo::AltitudeMode::Type mode) |
| double | latitude () const |
| bool | setLatitude (double lat) |
| double | longitude () const |
| bool | setLongitude (double lon) |
| bb::platform::geo::Marker | marker () const |
| Q_SLOT void | setMarker (const bb::platform::geo::Marker &marker) |
| Q_SLOT void | resetMarker () |
| Q_REVISION (1) double radius() const | |
| Q_REVISION (1) bool setRadius(double new Radius) | |
| Q_SLOT | Q_REVISION (1) void resetRadius() |
| virtual bb::platform::geo::BoundingBox | boundingBox () const |
| QString | description () const |
| Geographic (QObject *parent=0) | |
| Geographic (const QString &id, QObject *parent=0) | |
| QString | id () const |
| QString | name () const |
| Q_SLOT void | setDescription (const QString &desc) |
| Q_SLOT void | setId (const QString &id) |
| Q_SLOT void | setName (const QString &name) |
| Q_SLOT void | setStyleFamily (const QString &styleFamily) |
| QString | styleFamily () const |
Protected Functions Index
Only has inherited protected functions
| void | setBoundingBox (const bb::platform::geo::BoundingBox &newBox) |
Signals Index
| void | pointChanged (const bb::platform::geo::Point &point) |
| void | markerChanged (const bb::platform::geo::Marker &newMarker) |
| Q_REVISION (1) void radiusChanged(double new Radius) | |
| void | boundaryChanged (const bb::platform::geo::BoundingBox &box) |
| void | descriptionChanged (const QString &desc) |
| void | idChanged (const QString &id) |
| void | nameChanged (const QString &name) |
| void | styleFamilyChanged (const QString &newFamily) |
| void | topographyChanged (const QString &id) |
Properties
double
The radius of interest of the circle that represents this location.
BlackBerry 10.2.0
bb::platform::geo::BoundingBox
The axis-aligned bounding box in which this object is contained.
BlackBerry 10.0.0
Public Functions
Creates an instance of GeoLocation.
The resulting location defaults to that of a default Point.
| Parameters | |
|---|---|
| id |
The identifier for this Geographic. It is up to the caller to ensure the uniqueness of Geographic IDs. |
| parent |
The QObject parent of this object. |
BlackBerry 10.0.0
Creates an instance of GeoLocation with the given latitude and longitude.
| Parameters | |
|---|---|
| lat |
The latitude value (0 default). |
| lon |
The longitude value (0 default). |
| parent |
The QObject parent of this object. |
BlackBerry 10.0.0
Creates an instance of GeoLocation with the information provided.
| Parameters | |
|---|---|
| id |
The identifier for this Geographic. It is up to the caller to ensure the uniqueness of Geographic IDs. |
| name |
The name of this location. |
| location |
The location of this Point. |
| parent |
The QObject parent of this object. |
BlackBerry 10.0.0
virtual
Destructor.
bb::platform::geo::Point
Retrieves all point-based attributes of this location.
A Point version of this location.
BlackBerry 10.0.0
bool
Sets all point-based attributes of this location.
true if operation resulted in a change.
BlackBerry 10.0.0
bool
Sets the altitude of this Point in meters.
true if the operation resulted in a change.
BlackBerry 10.0.0
bb::platform::geo::AltitudeMode::Type
Captures how the altitude attribute should be interpreted.
The default value is AltitudeMode::RelativeToGround.
How the altitude property should be interpreted.
BlackBerry 10.0.0
bool
Sets the altitude mode.
The altitude measurement can be relative to the ground (default) or the sea level.
BlackBerry 10.0.0
true if the attribute changed.
BlackBerry 10.0.0
double
Gets the point's latitude in degrees.
BlackBerry 10.0.0
bool
Sets the point's latitude in degrees.
true if operation resulted in a change.
BlackBerry 10.0.0
double
Gets the point's longitude in degrees.
BlackBerry 10.0.0
bool
Sets the point's longitude in degrees.
true if operation resulted in a change.
BlackBerry 10.0.0
bb::platform::geo::Marker
Retrieves the marker, or icon, used to indicate this location.
The location's marker.
BlackBerry 10.0.0
Q_SLOT void
Sets the marker, or icon, used to indicate this location.
| Parameters | |
|---|---|
| marker |
The new marker. |
BlackBerry 10.0.0
Q_SLOT void
Resets the marker to the default icon, the blue pin.
BlackBerry 10.0.0
The radius of interest of this location.
The radius of interest of this location.
BlackBerry 10.2.0
Sets the radius of interest of this location.
| Parameters | |
|---|---|
| newRadius |
The new radius value for this location. |
true if this location's radius has changed.
BlackBerry 10.2.0
Q_SLOT
Resets the radius of interest of this location to 0 meters.
BlackBerry 10.2.0
virtualbb::platform::geo::BoundingBox
Retrieves the axis-aligned bounding box for this Geographic.
BlackBerry 10.0.0
Constructor.
If no ID is supplied when constructing a Geographic entity, an ID that is guaranteed to be unique will be auto-generated.
| Parameters | |
|---|---|
| parent |
The parent of this Geographic. |
BlackBerry 10.0.0
Constructor.
| Parameters | |
|---|---|
| id |
The identifier for this Geographic. |
| parent |
The parent of this Geographic. |
BlackBerry 10.0.0
QString 
Gets the unique identifier for this Geographic.
If two Geographics are attribute-wise equal, they still need to have different IDs. The ID needs to be unique within a process.
BlackBerry 10.0.0
Q_SLOT void 
Sets the style family for this Geographic.
| Parameters | |
|---|---|
| styleFamily |
The new style family for this element. |
BlackBerry 10.2.0
Protected Functions
(Only has inherited protected functions)
void 
Signals
void
Emitted when the point of this location changes.
BlackBerry 10.0.0
void
Emitted when the marker changes.
BlackBerry 10.0.0
Emitted when the radius of interest has changed.
| Parameters | |
|---|---|
| newRadius |
The new radius of this location. |
BlackBerry 10.2.0
void 
Emitted by derived classes when the bounding box has changed.
See the BoundingBox documentation.
BlackBerry 10.0.0
void 
Emitted when the style family attribute changes.
BlackBerry 10.2.0
void 
Emitted when the topography of this Geographic changes.
| Parameters | |
|---|---|
| id |
The ID of this Geographic. |
BlackBerry 10.1.0