pre final ad services and correct call the services async

This commit is contained in:
2026-02-20 09:51:03 +01:00
parent 8349e2b496
commit 46f7416781
7 changed files with 479 additions and 207 deletions

View File

@@ -11,32 +11,6 @@ class LocationIQService {
Future<void> fetchLocationIQ(double lat, double lon) async {
// https://eu1.locationiq.com/v1/reverse?key=$locationIQKey&lat=47.93875449671056&lon=13.762706553431048&format=json
// Simulierte Antwort (für Testzwecke)
locationIQ = LocationIQ(
placeId: '12345',
licence: 'Data © OpenStreetMap contributors',
osmType: 'node',
osmId: '67890',
lat: lat.toString(),
lon: lon.toString(),
displayName: 'Test Location',
address: Address(
houseNumber: '123',
road: 'Test Street',
village: 'Test Village',
county: 'Test County',
state: 'Test State',
postcode: '12345',
country: 'Test Country',
countryCode: 'TC',
),
boundingbox: [
'47.93875449671056',
'47.93875449671056',
'13.762706553431048',
'13.762706553431048',
],
);
// Http Request
var httpClient = http.Client();