isNight static method
- Coordinates coords,
- DateTime time
Check if it is night at the specified coordinates and time.
Parameters
- IN coords WGS Coordinates as Coordinates
- IN time Reference time as DateTime
Returns
- True if it is night at the specified coordinated and time, false otherwise.
Implementation
static bool isNight(final Coordinates coords, final DateTime time) {
final OperationResult resultString = staticMethod(
'MapDetails',
'isNight',
args: <String, Object>{
'coords': coords,
'refTime': time.millisecondsSinceEpoch,
},
);
return resultString['result'];
}