pre final ad services and correct call the services async
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user