Skip to main content

Simple routing

Contents

Calculate a route using Trimble Maps data for commercial vehicles and draw it on the map. (Requires routing plug-in).

lines-on-a-map

activity_sample_routing.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>

SampleRoutingActivity.java

Last updated September 14, 2023.
Contents