Sub Addpoi( Afilename As String, Alongitude As Long, Alatitude As Long, Aname As String, Anid As String) - TomTom Navigator SDK Installation And Use Manual

Version 3.0 build 193
Table of Contents

Advertisement

5. Communicating with TomTom Navigator from Visual Basic
• Ice Skating Ring − 9360
• Tennis Court − 9369
• Water Sport − 9371
• Doctor − 9373
• Dentist − 9374
• Veterinarian − 9375
• Nightlife − 9379
• Amusement Park − 9902
• Library − 9913
Versions 2.0 and later of TomTom Navigator also support the following POI types:
• Car Repair Facility − 7310
• Pharmacy − 7326
• Scenic/Panoramic View − 7337
• Swimming Pool − 7338
• Winery − 7349
• Camping Ground − 7360
• Park and Recreation Area − 9362
• Convention Centre − 9377
• Leisure Centre − 9378
• Yacht Basin − 9380
5.2.21. Sub AddPoi( aFilename As String, aLongitude As Long,
aLatitude As Long, aName As String, anId As String)
Command Parameters:
• aFilename As String: name of the POI category.
• aLongitude As Long: longitude specified in WGS84 format (in millionths of degree).
• aLatitude As Long: latitude specified in WGS84 format (in millionths of degree).
• aName As String: name of the POI.
• anId As String: optional external identifier of the POI.
Supported Since: TTN 1.51
Add a point of interest to the .OV2 file specified by the POI category argument. The point of interest
will have the name and co−ordinates given by the corresponding arguments. An external identifier string
can also be attached to the point of interest.
Example:
The following example invocation call demonstrates how to create a new point of interest:
Sub CreateNewPoi
On Error GoTo CreateNewPoi_Error
Call TTNav.AddPoi("ATM", 4749620, 52374810, "Postbank", "")
CreateNewPoi_Exit:
Exit Sub
CreateNewPoi_Error:
MsgBox "Failed to create the point of interest"
Resume CreateNewPoi_Exit
End Sub
See Also: DeleteClosestPoi, DeleteAllPoi, MakeUserPoiVisible, MoveClosestPoi
22

Advertisement

Table of Contents
loading

Table of Contents