Search
const
Search:object
Search
Type declaration
singleSearch
singleSearch:
Object
Single Search
Param
SingleSearchOptions. Search options
Example
const searchPromise = TrimbleMaps.Search.singleSearch({
query: '1 independence way, princeton, nj, 08540',
currentLonLat: new TrimbleMaps.LngLat(-74.600291, 40.360869),
excludeResultsFor: 'POI, POItype',
includeOnly: 'Country, State, County, City, POBox, Zip',
poiCategories: 'Airport, bank, CAT scales',
countries: 'US',
countryType: 'ISO',
states: 'NJ',
include: 'Meta',
useCustomPlaces: true,
separateHN: false,
getAllHNRanges: false,
includeTrimblePlaceIds: true,
lang: 'en-us',
matchNamedRoadsOnly: true,
maxCleanupMiles: 10,
heading: 90
});