> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baato.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Reverse search

> Turn map coordinates into an address in Flutter.

<Note>
  Before you begin, please make sure you have the [Baato Flutter Library](/libraries/flutter) installed in your app.
</Note>

<Frame caption="Tapping the map resolves an address">
  <img src="https://mintcdn.com/baato/3GUKEGLT42m2snov/images/flutter/reverse.png?fit=max&auto=format&n=3GUKEGLT42m2snov&q=85&s=03c9255645bfe987f4982d2844c35f9c" alt="An address resolved from a tapped point in a Flutter app" width="2208" height="1242" data-path="images/flutter/reverse.png" />
</Frame>

#### Baato Logo Attributions:

<Warning>
  We highly request you to include Baato logo in the map view while using any of our Baato map styles. The example code is available [here](/examples/flutter/display-map).
</Warning>

### Reverse Geocoding

Reverse geocoding means retrieving place information from coordinates.

The following example shows how to display location information based on the coordinates tapped on the map.

#### Example

```dart theme={null}
  @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}",
      );
    }
  }
```

<Card title="View the full example on GitHub" icon="github" href="https://github.com/baato/Flutter-Baato-Maps-Demo/blob/main/lib/ui/baato_reverse.dart" horizontal />
