MapDetailsContext
Objective-C
@interface MapDetailsContext : NSObject
Swift
class MapDetailsContext : NSObject
This class encapsulates map details information.
-
Returns the map coverage for the region specified by WGS84 coordinates. @details This function checks only using the information available on device. No server connection is performed.
Declaration
Objective-C
- (MapCoverage)getMapCoverage:(nonnull CoordinatesObject *)location;
Swift
func getMapCoverage(_ location: CoordinatesObject) -> MapCoverage
-
Returns the map coverage for the country specified by ISO 3166-1 alpha-3 country code. @details This function checks only using the information available on device. No server connection is performed.
Declaration
Objective-C
- (MapCoverage)getCountryMapCoverage:(nonnull NSString *)isoCode;
Swift
func getCountryMapCoverage(_ isoCode: String) -> MapCoverage
Return Value
MapCoverageUnknown - No map coverage available on device and cannot determine if there.
-
Returns the country name for the specified WGS.
Declaration
Objective-C
- (nonnull NSString *)getCountryNameWithLocation: (nonnull CoordinatesObject *)location;
Swift
func getCountryName(withLocation location: CoordinatesObject) -> String
-
Returns the country name for the specified index.
Declaration
Objective-C
- (nonnull NSString *)getCountryNameWithIndex:(unsigned int)index;
Swift
func getCountryName(with index: UInt32) -> String
Parameters
index
Country index.
-
Returns the ISO 3166-1 alpha-3 country code for the specified WGS. @details Empty string means no country.
Declaration
Objective-C
- (nonnull NSString *)getCountryCodeWithCoordinates: (nonnull CoordinatesObject *)location;
Swift
func getCountryCode(withCoordinates location: CoordinatesObject) -> String
-
Returns the ISO 3166-1 alpha-3 country code for the specified index. @details Empty string means no country. See: http://en.wikipedia.org/wiki/ISO_3166-1 for the list of codes.
Declaration
Objective-C
- (nonnull NSString *)getCountryCodeWithIndex:(unsigned int)index;
Swift
func getCountryCode(with index: UInt32) -> String
-
Returns the country image for the specified index.
Declaration
Objective-C
- (nullable ImageObject *)getCountryImage:(unsigned int)index;
Swift
func getCountryImage(_ index: UInt32) -> ImageObject?
-
Returns the language codes for the specified WGS. @details Empty list means no coordinates match. See: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for the list of codes.
Declaration
Objective-C
- (nonnull NSArray<NSString *> *)getLanguageCodesWithCoordinates: (nonnull CoordinatesObject *)location;
Swift
func getLanguageCodes(withCoordinates location: CoordinatesObject) -> [String]
-
Returns the country name for the isoCode.
Declaration
Objective-C
- (nonnull NSString *)getCountryNameWithIsoCode:(nonnull NSString *)isoCode;
Swift
func getCountryName(withIsoCode isoCode: String) -> String
Parameters
isoCode
ISO 3166-1 alpha-3 country code.
-
Returns the country flag for the isoCode.
Declaration
Objective-C
- (nullable ImageObject *)getCountryFlag:(nonnull NSString *)isoCode;
Swift
func getCountryFlag(_ isoCode: String) -> ImageObject?
Parameters
isoCode
ISO 3166-1 alpha-3 country code.
-
Returns the country bounding rectangle for the isoCode.
Declaration
Objective-C
- (nullable RectangleGeographicAreaObject *)getCountryBoundingRectangle: (nonnull NSString *)isoCode;
Swift
func getCountryBoundingRectangle(_ isoCode: String) -> RectangleGeographicAreaObject?
Parameters
isoCode
ISO 3166-1 alpha-3 country code.
Return Value
Country bounding rectangle.
-
Check if it is night at the specified coordinated.
Declaration
Objective-C
- (BOOL)isNight:(nonnull CoordinatesObject *)location;
Swift
func isNight(_ location: CoordinatesObject) -> Bool
Parameters
location
WGS Coordinates.
-
Returns country data count.
Declaration
Objective-C
- (int)getCountryDataCount;
Swift
func getCountryDataCount() -> Int32