globalmapper.FindNearestAddress

globalmapper.FindNearestAddress(GM_Point_t aSearchPt, [GM_LayerHandle_t32] aLayerList, float aMaxDistMeters, int aReserved) GM_Error_t32, str[source]

Searches the provided list of layers for any visible vector line feature within the provided search distance (aMaxDistMeters) which has addressing information in a supported format (i.e. Tiger/Line data).

Parameters
  • aSearchPt (GM_Point_t) – Search location in current view projection (as returned by SetProjection)

  • aLayerList ([GM_LayerHandle_t32]) – List of layers to search or None for all vector layers

  • aMaxDistMeters (float) – Maximum distance in meters to search around search point

  • aReserved (int) – Reserved for later use, must be 0.

Returns

Error Code

Return type

GM_Error_t32

Returns

The addressing information of the found features

Return type

str