GeolocationRequest class abstract
The request body must be formatted as JSON. The following fields are supported, and all fields are optional.
Properties:
- homeMobileCountryCode - The cell tower's Mobile Country Code (MCC).
- homeMobileNetworkCode - The cell tower's Mobile Network Code. This is the MNC for GSM and WCDMA; CDMA uses the System ID (SID).
- radioType - The mobile radio type. Supported values are lte, gsm, cdma, and wcdma. While this field is optional, it should be included if a value is available, for more accurate results.
- carrier - The carrier name.
- considerIp - Specifies whether to fall back to IP geolocation if wifi and cell tower signals are not available. Defaults to true. Set considerIp to false to disable fall back.
- cellTowers - The request body's cellTowers array contains zero or more cell tower objects.
- wifiAccessPoints - An array of two or more WiFi access point objects.
Constructors
- GeolocationRequest([void updates(GeolocationRequestBuilder b)])
-
factory
Properties
- carrier → String?
-
The carrier name.
no setter
-
cellTowers
→ BuiltList<
CellTower> ? -
The request body's cellTowers array contains zero or more cell tower objects.
no setter
- considerIp → String?
-
Specifies whether to fall back to IP geolocation if wifi and cell tower signals are not available. Defaults to true. Set considerIp to false to disable fall back.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- homeMobileCountryCode → int?
-
The cell tower's Mobile Country Code (MCC).
no setter
- homeMobileNetworkCode → int?
-
The cell tower's Mobile Network Code. This is the MNC for GSM and WCDMA; CDMA uses the System ID (SID).
no setter
- radioType → String?
-
The mobile radio type. Supported values are lte, gsm, cdma, and wcdma. While this field is optional, it should be included if a value is available, for more accurate results.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
wifiAccessPoints
→ BuiltList<
WiFiAccessPoint> ? -
An array of two or more WiFi access point objects.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(GeolocationRequestBuilder)) → GeolocationRequest -
Rebuilds the instance.
inherited
-
toBuilder(
) → GeolocationRequestBuilder -
Converts the instance to a builder
B
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
GeolocationRequest> -
no setter