MEMarkerQuery Class Reference

Inherits from NSObject
Declared in MEMarkerQuery.h

Overview

Used to query marker map databases.

+ getMaxMarkerWeightsAlongRoute:tableNamePrefix:wayPoints:samplePointCount:bufferRadius:

Returns an array of maximum marker weights in a route corridor mapped to a fixed sample point count.The intention of this function is to enable you to draw a graph of samplePointCount width such that a maximum marker weight can be plotted on the graph. For example: plotting the tallest obstacle along a route. This function may be called from a background thread.

+ (NSArray *)getMaxMarkerWeightsAlongRoute:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix wayPoints:(NSArray *)wayPoints samplePointCount:(uint)samplePointCount bufferRadius:(double)bufferRadius

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

wayPoints

An array of NSValue wrapped CGPoints (minimum of two) that represent waypoints for the route where in each point x = longitude and y = latitude.

samplePointCount

The number of samples to generate.

bufferRadius

The nautical mile buffer radius around the route formed by the way points..

Declared In

MEMarkerQuery.h

+ getMarkersAlongRoute:tableNamePrefix:wayPoints:bufferRadius:

Returns an array of MEMarker objects that lie along a given route. This function may be called from a background thread.

+ (NSArray *)getMarkersAlongRoute:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix wayPoints:(NSArray *)wayPoints bufferRadius:(double)bufferRadius

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

wayPoints

An array of NSValue wrapped CGPoints (minimum of two) that represent waypoints for the route where in each point x = longitude and y = latitude.

bufferRadius

The nautical mile buffer radius around the route formed by the way points.

Declared In

MEMarkerQuery.h

+ getMarkersAroundLocation:tableNamePrefix:location:radius:

Returns an array of MEMarker objects from the specified marker database within a given nautical mile radius of the specified location. This function may called from a background thread.

+ (NSArray *)getMarkersAroundLocation:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix location:(CLLocationCoordinate2D)location radius:(double)radius

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

location

The geographic point around which to search for markers.

radius

The nautical mile radius around the point to search for markers.

Declared In

MEMarkerQuery.h

+ getHighestMarkerAroundLocation:tableNamePrefix:location:radius:

Returns an MEMarker object with the highest weight from the specified marker database within a given nautical mile radius of the specified location. If there is no marker, returns nil. This function may be called from a background thread.

+ (MEMarker *)getHighestMarkerAroundLocation:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix location:(CLLocationCoordinate2D)location radius:(double)radius

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

location

The geographic point around which to search for markers.

radius

The nautical mile radius around the point to search for markers.

Declared In

MEMarkerQuery.h

+ getMarkersInBoundingBox:tableNamePrefix:southWestLocation:northEastLocation:

Returns an array of MEMarker objects from the specified marker database that lie within the geographic bounds of a rectangle defined by the specified SW and NE points. This function takes into account meridian and antimeridian crossing of the given bounds. This function may be called from a background thread.

+ (NSArray *)getMarkersInBoundingBox:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix southWestLocation:(CLLocationCoordinate2D)southWestLocation northEastLocation:(CLLocationCoordinate2D)northEastLocation

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

southWestLocation

The ‘lower left’ corner of the bounds.

northEastLocation

THe ‘upper right’ cornder of the bounds.

Declared In

MEMarkerQuery.h

+ getHighestMarkerInBoundingBox:tableNamePrefix:southWestLocation:northEastLocation:

Returns an MEMarker object with the highest weight that lies within the geographic bounds of a rectangle defined by the specified SW and NE points. If there is no marker, returns nil. This function takes into account meridian and antimeridian crossing of the given bounds. This function may be called from a background thread.

+ (MEMarker *)getHighestMarkerInBoundingBox:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix southWestLocation:(CLLocationCoordinate2D)southWestLocation northEastLocation:(CLLocationCoordinate2D)northEastLocation

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

southWestLocation

The ‘lower left’ corner of the bounds.

northEastLocation

THe ‘upper right’ cornder of the bounds.

Declared In

MEMarkerQuery.h

+ getMarkersOnRadial:tableNamePrefix:location:radial:distance:bufferRadius:

Returns an array of MEMarker objects for markers that lie on a radial (from true North) from a given point. This function may be called from a background thread.

+ (NSArray *)getMarkersOnRadial:(NSString *)markerSqliteFile tableNamePrefix:(NSString *)tableNamePrefix location:(CLLocationCoordinate2D)location radial:(double)radial distance:(double)distance bufferRadius:(double)bufferRadius

Parameters

markerSqliteFile

The full path of the marker sqlite database file.

tableNamePrefix

For databases with multiple marker tables, the prefix for the table name.

location

The location from which the radial lies.

radial

The radial in degrees.

distance

The nautical mile distance of the radial.

bufferRadius

The nautical mile width of the corridor along the radial.

Declared In

MEMarkerQuery.h