Skip to main content

Geocoding

Contents

Geocode an address from a search query and zoom to that location on the map.

Geocoding

activity_sample_geocoding.xml

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_height="match_parent"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent">

    <com.trimblemaps.mapsdk.maps.MapView
        android:id="@+id/mapView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</FrameLayout>

SampleGeocodingActivity.java

Last updated February 9, 2024.
Contents