mod divers data
This commit is contained in:
@@ -1,21 +1,16 @@
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'dart:convert';
|
||||
|
||||
import '../config/environment.dart';
|
||||
import '../models/locationiq_model.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
class LocationIQService {
|
||||
static final String baseUrl = Environment.locationIQBaseUrl;
|
||||
late LocationIQ locationIQ;
|
||||
|
||||
Future<void> fetchLocationIQ(double lat, double lon) async {
|
||||
// Hier würde die eigentliche API-Anfrage an LocationIQ erfolgen
|
||||
// Zum Beispiel mit http.get() und der URL aus Environment.locationIQUrl
|
||||
// Die Antwort würde dann in das LocationIQ-Modell umgewandelt werden
|
||||
// https://eu1.locationiq.com/v1/reverse?key=$locationIQKey&lat=47.93875449671056&lon=13.762706553431048&format=json
|
||||
// locationIQ = LocationIQ.fromJson(responseData);
|
||||
// Simulierte Antwort (für Testzwecke)
|
||||
locationIQ = LocationIQ(
|
||||
placeId: '12345',
|
||||
|
||||
Reference in New Issue
Block a user