CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
Public Attributes | List of all members
com.cartotype.RouterType Enum Reference

Public Attributes

 Default
 
 StandardAStar
 
 TurnExpandedAStar
 
 StandardContractionHierarchy
 
 TECH
 

Detailed Description

Types of router; used when selecting a router type.

Member Data Documentation

◆ Default

com.cartotype.RouterType.Default

This router type causes the default router to be selected: the one for which serialized data is available in the map file, or, failing that, StandardAStar.

◆ StandardAStar

com.cartotype.RouterType.StandardAStar

The A* router, which gives fast performance but takes a lot of memory and cannot create a route going twice through the same junction.

◆ StandardContractionHierarchy

com.cartotype.RouterType.StandardContractionHierarchy

The contraction hierarchy router is intended where less RAM is available: for example with large maps on mobile devices. It gives the same routes as StandardAStar, but is a little slower and does not support custom route profiles; the route profile is decided at the time of creating the CTM1 file.

◆ TECH

com.cartotype.RouterType.TECH

Turn-expanded contraction hierarchy.

◆ TurnExpandedAStar

com.cartotype.RouterType.TurnExpandedAStar

A version of the A* router with road nodes and turn arcs; slower than StandardAStar, and uses more memory, but can generate routes going twice through the same junction, for more flexible routing.


The documentation for this enum was generated from the following file: