Click or drag to resize

GM_FindFeaturesFindNearestAddress Method

Finds the address closest to the search location

Namespace:  GlobalMapper
Assembly:  GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 19.1.0.0 (19.1.0.0)
Syntax
C#
public static GM_Error_t32 FindNearestAddress(
	GM_Point_t aSearchPt,
	GM_LayerList_t aLayerList,
	out string aAddressStr,
	uint aMaxAddressLen,
	double aMaxDistMeters,
	Object aReserved
)

Parameters

aSearchPt
Type: GlobalMapperGM_Point_t
IN: Search location in current view projection (as returned by GM_SetProjection)
aLayerList
Type: GlobalMapperGM_LayerList_t
IN: List of layers to search or NULL for all vector layers
aAddressStr
Type: SystemString
I/O: Buffer to hold string for nearest address
aMaxAddressLen
Type: SystemUInt32
IN: Maximum length of string to store in output
aMaxDistMeters
Type: SystemDouble
IN: Maximum distance in meters to search around search point
aReserved
Type: SystemObject
IN: Reserved for later use, must be NULL (0)

Return Value

Type: GM_Error_t32
A GM Error Code
See Also