Table of Contents

TTMSFNCCustomRouteCalculator Class

Implements route calculation, route editing, and route persistence behavior.

API unit family: TMSFNCRoutecalculator Inherits from: TTMSFNCCustomComponent

Syntax

TTMSFNCCustomRouteCalculator = class(TTMSFNCCustomComponent)

Properties

Name Description
Active When True, the route is active and used by route operations.
Directions Provides directions displayed on the map.
Geocoding Provides the geocoding service used by the route calculator.
HistoryManager Provides the undo history manager for route editing.

Methods

Name Description
AddRouteSegment Adds an address-based segment to an existing route.
AddWayPointsToSegment Executes add way points to segment.
CalculateRoute Calculates a route between start and end addresses.
Clear Removes all items from the collection or map layer.
ClearRoutes Executes clear routes.
DeleteRoute Executes delete route.
DeleteRouteSegment Executes delete route segment.
GetCurrentLocation Returns the current location.
GetDirections Requests route directions between coordinates.
GetGeocoding Requests geocoding for an address.
GetReverseGeocoding Requests reverse geocoding for a coordinate.
HasRoutes Returns whether any routes are available.
LoadGPXFromFile Returns load gpx from file.
LoadGPXFromStream Returns load gpx from stream.
LoadGPXFromText Returns load gpx from text.
LoadRoutesFromFile Executes load routes from file.
LoadRoutesFromStream Executes load routes from stream.
LoadRoutesFromText Executes load routes from text.
RunnningRequestCount Returns runnning request count.
SaveRoutesToFile Executes save routes to file.
SaveRoutesToStream Executes save routes to stream.
SaveRoutesToText Returns save routes to text.
SaveToGPXFile Saves a route to a GPX file with default metadata.
SaveToGPXStream Writes a route to a GPX stream with default metadata.
SaveToGPXText Returns GPX text for a route with default metadata.
UpdateRouteSegment Updates a route segment with start and end addresses.
UpdateRouteSegmentEndAddress Updates route segment end address.
UpdateRouteSegmentEndCoordinate Updates route segment end coordinate.
UpdateRouteSegmentStartAddress Updates route segment start address.
UpdateRouteSegmentStartCoordinate Updates route segment start coordinate.