Sub Geocodeex( Acity As String, Astreet As String, Ahousenr As String, Apostcode As String); Sub Getdatasetinfo( ); Sub Getrouteinfo( ) - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

5. Communicating with TomTom Navigator from Visual Basic
End Sub
5.2.27. Sub GeocodeEx( aCity As String, aStreet As String, aHouseNr
As String, aPostcode As String)
Command Parameters:
• aCity As String: city name.
• aStreet As String: street name.
• aHouseNr As String: house number.
• aPostcode As String: postal code.
Supported Since: TTN 2.22
Find the location specified by an address, given by the city name, street name, house number and postal
code arguments, and return the co−ordinates of the found location and its complete city and street names in
the corresponding read−only properties of the control. If the street name argument is empty, the function
will try to find the center of the city specified by the city name argument. As of version 2.22 of Navigator,
the postal code will be only used as a help in trying to find the city. 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 geocode status property of the control.
The return values are the same as those of Geocode.

5.2.28. Sub GetDataSetInfo( )

Supported Since: TTN 2.0
Obtains information about the currently selected data set. The information is available after this call in
the following read−only properties of the control:
Property DataSetName As String: name of the data set
Property DataSetFlags As Long: explained below
The data set flags property can contain the following flags:
• 1 − indicates that the house numbers are written before the street name in addresses
• 2 − indicates left−sided driving

5.2.29. Sub GetRouteInfo( )

Supported Since: TTN 2.0
Obtains information about the current route. The information is available after this call in the following
read−only properties of the control:
Property RouteStatus As Long: validity of the rest of the fields, as explained below
Property RouteDepartureLongitude As Long: endpoint co−ordinates in millionths of degree (WGS84
format)
Property RouteDepartureLatitude As Long: −
Property RouteDestinationLongitude As Long: −
Property RouteDestinationLatitude As Long: −
Property RouteEnclosingLongitudeW As Long: rectangle enclosing the route (co−ordinates in
millionths of degree, WGS84 format)
Property RouteEnclosingLatitudeS As Long: −
25

Advertisement

Table of Contents
loading

Table of Contents