Constructor
new CoordinateSat(options)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Since:
- 1.5.0
- Source:
Extends
Members
(protected) alt :Number|null
Type:
- Number | null
(protected) heading :Number|null
Type:
- Number | null
(protected) lat :double
Type:
- double
- Inherited From:
- Source:
(protected) lon :double
Type:
- double
- Inherited From:
- Source:
(protected) satellites :Number|null
Type:
- Number | null
(protected) speed :Number|null
Type:
- Number | null
(protected) time :Number|String|Date|null
Type:
- Number | String | Date | null
Methods
(static) fromJson(json) → {bemap.CoordinateSat}
Hydrate a CoordinateSat from a plain JSON object (typically from a BeMap response).
Accepts both the modern `sat` field and the legacy `satellites` field.
Parameters:
| Name | Type | Description |
|---|---|---|
json |
Object |
Returns:
- Type
- bemap.CoordinateSat
getLat() → {double}
Return the latitude coordinate in degrees decimal (WGS84).
- Inherited From:
- Source:
Returns:
Return the latitude coordinate in degrees decimal (WGS84).
- Type
- double
getLatLonArray() → {array}
Return an array of composed by longitude and latitude coordinate in degrees decimal (WGS84).
- Inherited From:
- Source:
Returns:
Return an array of composed by longitude and latitude coordinate in degrees decimal (WGS84).
- Type
- array
getLon() → {double}
Return the longitude coordinate in degrees decimal (WGS84).
- Inherited From:
- Source:
Returns:
Return the longitude coordinate in degrees decimal (WGS84).
- Type
- double
getLonLatArray() → {array}
Return an array of composed by latitude and longitude coordinate in degrees decimal (WGS84).
- Inherited From:
- Source:
Returns:
Return an array of composed by latitude and longitude coordinate in degrees decimal (WGS84).
- Type
- array
setLat(lat) → {bemap.Coordinate}
Set the latitude coordinate in degrees decimal (WGS84).
Parameters:
| Name | Type | Description |
|---|---|---|
lat |
double | Latitude in degrees decimal (WGS84). |
- Inherited From:
- Source:
Returns:
Return this.
- Type
- bemap.Coordinate
setLon(lon) → {bemap.Coordinate}
Set the longitude coordinate in degrees decimal (WGS84).
Parameters:
| Name | Type | Description |
|---|---|---|
lon |
double | Longitude in degrees decimal (WGS84). |
- Inherited From:
- Source:
Returns:
Return this.
- Type
- bemap.Coordinate
toJson() → {Object}
Return a wire-format JSON object suitable for inclusion in a BeMap request body.
Only non-null fields are emitted.
Wire field names mirror the BeMap server contract (cross-checked against the
Flutter SDK `bemap-flutter-api/lib/service/map/model/coordinate_sat.dart`):
- `lon` / `lat` (not longitude / latitude)
- `sat` (not satellites)
- `time` as epoch milliseconds (integer) — Dates and ISO strings are coerced
Returns:
- Type
- Object