Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Turn map coordinates into an address in Flutter.
Tapping the map resolves an address
@override Widget build(BuildContext context) { return Scaffold( body: BaatoMap( onMapCreated: _onMapCreated, onStyleLoadedCallback: _onStyleLoaded, myLocationEnabled: true, onTap: (point, coordinate, features) { mapController.markerManager.addMarker( BaatoSymbolOption( geometry: coordinate, textField: "Drop a pin", // iconImage: [optional] Can add your own marker image ), ); _requestLocationDetails(coordinate); }, initialPosition: BaatoCoordinate( latitude: 27.7192873, longitude: 85.3238007, ), ), ); } _requestLocationDetails(BaatoCoordinate baatoCoordinate) async { final response = await Baato.api.place.reverseGeocode(baatoCoordinate); //perform reverse Search setState(() { placeResponse = response; }); _showAddressInfo(response); } _showAddressInfo(BaatoPlaceResponse response) { if (response.data!.isEmpty) print("No result found"); else { AppToast.showMessage( "Name: ${response.data![0].name} \nAddress: ${response.data![0].address}", ); } }