mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-08-28 13:50:25 +02:00
first version worth putting in git - compiles and runs - missing a lot still.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import 'package:latlong2/latlong.dart';
|
||||
|
||||
class OsmCameraNode {
|
||||
final int id;
|
||||
final LatLng coord;
|
||||
final Map<String, String> tags;
|
||||
|
||||
OsmCameraNode({
|
||||
required this.id,
|
||||
required this.coord,
|
||||
required this.tags,
|
||||
});
|
||||
|
||||
bool get hasDirection => tags.containsKey('direction');
|
||||
double? get directionDeg =>
|
||||
hasDirection ? double.tryParse(tags['direction']!) : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user