目录

class info
com.huawei.hms.mlsdk.common.MLCoordinate
Represents a longitude and latitude data class.

Public Constructor Summary

Constructor name
MLCoordinate(double lat, double lng)
Instantiates a group of longitude and latitude data records.

Public Method Summary

Return typeMethod name
doublegetLat()
doublegetLng()

Public Constructors

Method
public MLCoordinate(double lat, double lng)
Instantiates a group of longitude and latitude data records.

Parameters

Parameter nameParameter desc
latLatitude
lngLongitude

Public Methods

Method
public double getLat()
Obtains latitude information.

Return

Typedesc
doubleLatitude
Method
public double getLng()
Obtains longitude information.

Return

Typedesc
doubleLongitude