GeolocationResponse class abstract
A successful geolocation request will return a JSON-formatted response defining a location and radius.
Properties:
- location
- accuracy - The accuracy of the estimated location, in meters. This represents the radius of a circle around the given
location
. If your Geolocation response shows a very high value in theaccuracy
field, the service may be geolocating based on the request IP, instead of WiFi points or cell towers. This can happen if no cell towers or access points are valid or recognized. To confirm that this is the issue, setconsiderIp
tofalse
in your request. If the response is a404
, you've confirmed that yourwifiAccessPoints
andcellTowers
objects could not be geolocated.
Constructors
- GeolocationResponse([void updates(GeolocationResponseBuilder b)])
-
factory
Properties
- accuracy → num
-
The accuracy of the estimated location, in meters. This represents the radius of a circle around the given
location
. If your Geolocation response shows a very high value in theaccuracy
field, the service may be geolocating based on the request IP, instead of WiFi points or cell towers. This can happen if no cell towers or access points are valid or recognized. To confirm that this is the issue, setconsiderIp
tofalse
in your request. If the response is a404
, you've confirmed that yourwifiAccessPoints
andcellTowers
objects could not be geolocated.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- location → LatLngLiteral
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(GeolocationResponseBuilder)) → GeolocationResponse -
Rebuilds the instance.
inherited
-
toBuilder(
) → GeolocationResponseBuilder -
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<
GeolocationResponse> -
no setter