Int Setnavigatorproperty( Eproperty Aproperty, Long Avalue); Int Geocodev01( Lpctstr Acity, Lpctstr Astreet, Lpctstr Ahousenr, Tgeocodeinfov01& Ageocodeinfo) - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

Returns: 0 if successful, non−zero value otherwise.
Supported Since: TTN 3.0
Get the number of locations in the itinerary.

6.2.49. INT SetNavigatorProperty( EProperty aProperty, long aValue)

Command Parameters:
• EProperty aProperty: Property to set
• long aValue: value to set the proerty to
Returns: 0 if successful, non−zero value otherwise.
Supported Since: TTN 3.0
Set the value of a property in the application.
6.2.50. INT GeocodeV01( LPCTSTR aCity, LPCTSTR aStreet, LPCTSTR
aHouseNr, TGeocodeInfoV01& aGeocodeInfo)
Command Parameters:
• LPCTSTR aCity: city name
• LPCTSTR aStreet: street name
• LPCTSTR aHouseNr: house number
• TGeocodeInfoV01& aGeocodeInfo: geocode information
Returns: 0 if successful, non−zero value otherwise.
Supported Since: TTN 1.51
Find the location specified by an address, given by the city name, street name and house number
arguments, and return the co−ordinates of the found location and its complete city and street names in the
geocode information argument. If the street name argument is empty, the function will try to find the center
of the city specified by the city name argument. The house number is always ignored in versions of
TomTom Navigator prior to 2.0. If no location is found with city and street names exactly matching the
arguments, then a city and a street will be chosen with names as similar as possible to the given ones. This
will be indicated in the status field of the geocode information argument.
Example:
The following example shows how to instruct TomTom Navigator to plan a route to a given address.
TGeocodeInfoV01 info;
INT error = CTomTomNavigatorCom::GeocodeV01(_T("Zwanenburg"),
if (error)
{
::AfxMessageBox(TEXT("Geocode failed"));
}
else if (info.iStatus != CTomTomNavigatorCom::KGeocodeFailure)
{
error = CTomTomNavigatorCom::NavigateToCoordinate(info.iLongitude,
if (error)
{
6. Communicating with TomTom Navigator from C++
_T("Julianalaan"),
_T("12"), info);
39
info.iLatitude,
_T("Julianalaan, 12"));

Advertisement

Table of Contents
loading

Table of Contents