fetchCoordinates method
Converts a 3-word address into coordinates.
Implementation
Future<void> fetchCoordinates(String words) async {
isLoading = true;
errorMessage = null;
notifyListeners();
try {
result = await convertToCoordinates(words);
errorMessage = null;
} catch (e) {
errorMessage = 'Error: ${e.toString()}';
result = null;
} finally {
isLoading = false;
notifyListeners();
}
}