C++ SDK

◆ ShowHierarchyDialog()

static int CApplicationAPI::ShowHierarchyDialog ( LpError  lpError,
LPCTSTR  lpszIso,
LPCTSTR  lpszCity,
LPCTSTR  lpszStreet,
BOOL  bPostal,
SWayPoint *&  lpPosition,
DWORD  dwMaxTime = DEFAULT_MAX_TIME 
)
static

The function shows hierarchy dialog and returns location of taken address.

Parameters
lpErrorAdditional error information returned from Drive.
lpszIsoISO code of map (country) where address is located. This parameter is obligatory.
lpszCityName of city or postal code of the city in taken country.
lpszStreetStreet in taken city.
bPostalFlag determining whether City parameter represents city or ZIP code.
true - ZIP code.
false - City.
lpPositionReference to instance of SWayPoint type determining location of taken address.
dwMaxTimeMaximum time (in milliseconds) function can take. If dwMaxTime=0 function execution is not time limited.
Returns
1 if successful, other value otherwise.

Possible error codes returned from Drive are:

  • 0 - Function not succeeded.
  • 1 - Function succeeded.
  • 2 - Drive not succeeded.
  • 3 - Function reached timeout.