27 lines
455 B
Dart
27 lines
455 B
Dart
|
|
|
|
import 'package:geojson/geojson.dart';
|
|
import 'package:latlong2/latlong.dart';
|
|
|
|
class RogEvent{
|
|
int? id;
|
|
String? title;
|
|
String? venue;
|
|
DateTime? at_date;
|
|
List<LatLng>? latlngs;
|
|
|
|
RogEvent({this.id, this.title, this.venue, this.at_date, this.latlngs});
|
|
|
|
RogEvent.fromId(int id){
|
|
this.id = id;
|
|
}
|
|
|
|
Future<void> fromgeoJson(String geojson) async {
|
|
final geo = GeoJson();
|
|
return await geo.parse(geojson, verbose: true);
|
|
}
|
|
|
|
|
|
|
|
|
|
} |