defaultCoordinate

This property allows the super app to configure the default coordinate. The default coordinate is used when the user's current location is not available.

Note: Must configure this property before initializing the SDK.

Property

copy
/**
The default coordinate used when the user's current location is not available. This might occur when CLLocationManager hasn't called back or the authorization for location hasn't got granted.
 */
@property (nonatomic, assign) CLLocationCoordinate2D defaultCoordinate;

Name

Type

Description

Required

defaultCoordinate

CLLocationCoordinate2D structure

Indicates the default coordinate that consists of the following components:

  • latitude: represents the latitude of the coordinate.
  • longitude: represents the longitude of the coordinate.

Yes

Sample

copy
func createGriverConfiguration() -> GRVConfiguration {
    let configuration = GRVConfiguration()
    let latitude: CLLocationDegrees = // default latitude
    let longitude: CLLocationDegrees = // default longitude
    configuration.defaultCoordinate = CLLocationCoordinate2D(latitude: latitude, longitude: longitude)
    return configuration
}