Skip to main content

Avoid Favors

List avoid and favor sets configured for your Trimble Maps account using the services API.

Avoid Favors

Sample code

import { getAvoidFavorSets } from "@trimblemaps/services-react-native";

const result = await getAvoidFavorSets({
  pageSize: 10,
  pageNumber: 1,
});

const count = result.afSets?.length ?? 0;
const total = result.totalAFSetCount ?? count;

Requires @trimblemaps/services-react-native and an initialized account. See Avoid and favor sets.

Last updated November 5, 2026.