# Open the Map App

<figure><img src="https://1168517704-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKLgWHTlbcMvpwVT7mLBW%2Fuploads%2FwycYNkBNhnuasKgD0fI2%2FIMG_3928-portrait.png?alt=media&#x26;token=7f6a39af-b4a2-48b8-92e0-20cfadff26d4" alt="" width="375"><figcaption></figcaption></figure>

## Get started <a href="#get-started" id="get-started"></a>

To access the browser functionality, the following platform-specific setup is required.

### Android

Android uses the `geo:` URI scheme to launch the maps application on the device. This may prompt the user to select from an existing app that supports this URI scheme. Google Maps supports this scheme.

In the *Platforms/Android/AndroidManifest.xml* file, add the following `queries/intent` nodes to the `manifest` node:

```xml
<queries>
  <intent>
    <action android:name="android.intent.action.VIEW" />
    <data android:scheme="geo"/>
  </intent>
</queries>
```

## Using the map <a href="#using-the-map" id="using-the-map"></a>

The map functionality works by calling the `Device.Map.TryOpen()` method, and passing either an instance of the **Location** or **Placemark** type. The following example opens the installed map app at a specific GPS location:

```csharp
public void NavigateToBuilding25()
{
    var location = new Location(47.645160, -122.1306032);
    var options = new MapLaunchOptions { Name = "Microsoft Building 25" };

    bool opened = Device.Map.TryOpen(location, options);
}
```

{% hint style="info" %}
The `Location` and `Placemark` types are in the `Wisej.Hybrid.Shared.Geolocation` namespace.
{% endhint %}

When you use a `Placemark` to open the map, more information is required. The information helps the map app search for the place you're looking for. The following information is required:

* CountryName
* AdminArea
* Thoroughfare
* Locality

```csharp
public void NavigateToBuilding()
{
    var placemark = new Placemark
    {
        CountryName = "United States",
        AdminArea = "WA",
        Thoroughfare = "Microsoft Building 25",
        Locality = "Redmond"
    };
    var options = new MapLaunchOptions { Name = "Microsoft Building 25" };

    bool opened = Device.Map.TryOpen(placemark, options);
}
```
