Navigation

Navigation Warnings

The Sygic Android SDK supports navigation on pedestrian and car routes. Using this feature, your app can check the current device position against a calculated route and provide just-in-time navigational instructions, both as visual and voice instructions. Turn-by-Turn Navigation Mode, which takes the calculated route and matches the current position against the route is supported for walking and driving.

While navigating, application can register a listener for warning notifications and display all of these notifications. All the types of notifications are listed in NavigationManager class. The following table shows the name of the available listeners and the information provided them.

Listener name

Function

OnCurrentStreetListener

Whether the current street has changed

OnDirectionListener

Whether the direction has chnaged

OnSpeedLimitListener

Whether the user has exceeded the speed limit

OnNaviSignListener

Whether the signpost has updated

OnRadarListener

Whether a speedcamera is ahead

OnRailwayListener

Whether a railway crossing is ahead

OnHighwayExitListener

Whether a highway exit is ahead

OnWaypointPassedListener

Whether the vehicle passed by a waipoint

OnTransportModeListener

Whether the transport mode has changed (from car to pedestrian for example)

Map Matching is automatically enabled in both navigation mode and tracking mode. In simulation mode, the map-matched position is simulated along the route with a user-defined speed.

Voice Instructions

Voice instructions are available in the Sygic SDK as voice packages. Voice packages are available in two forms: pre-packaged or downloadable through the voice catalog. You can set a voice package to be used for navigational instructions.

The Sygic SDK supports two types of voice packages: text-to-speech or pre-recorded. Pre-recorded voice skins provide basic maneuver instructions, such as "turn right in 100 meters", while text-to-speech voices also support spoken street names, such as "turn right in 100 meters onto Wall Street".

Following code shows, how to get the list of installed voices and setting the voice:

This is a list of the potential TTS languages that are supported. Actual audio playback depends on the supported languages in the user's installed version of Android.

English (US)

English (UK)

French (France)

French (Canada)

German

Spanish (Spain)

Spanish (Mexico)

Indonesian

Italian

Norwegian

Portugese (Portugal)

Portugese (Brazil)

Russian

Swedish

Finnish

Danish

Korean

Chinese (Taiwanese Mandarin)

Turkish

Czech

Polish

Traffic

Traffic information show traffic incidents on the map. Traffic visualization requires a network data connection to download real time traffic information. However, traffic information may continue to be displayed thereafter without a connection until the traffic events expire or the visibility is toggled.

Traffic information

Signposts

Signs represent textual and graphic information which are along the route. The information is always represented as text or pictogram. Signpost information may be used for route guidance and map display. A navigation system may prefer using the signpost text rather than the street/ramp name as the latter may not always match what is on the sign in reality and may confuse a user. The signpost feature supports the user navigating through complex situations and provides a conformation for a maneuver by presenting the same direction information as shown on the street signs in reality.

Based on the map attributes, the Sygic Android Mobile SDKs aggregate the following information into a Signpost object:

Route number

Exit number

Exit name

Pictogram

Place name

Background color

Text color

Following example shows, how to get these information from the data structure, which the Android SDK offers.

Directions

To provide more detailed information in signpost, you can display the direction which the user should follow. The Directions feature allows developers to define and display routes between a start and a destination point within their application. NavigationManager.OnDirectionListener can return following information:

Direction distance

Next direction distance

Maneuver type - see the all available ManeuverTypes

Road name

Next road name

Following example shows, how to get these information from the data structure, which the Android SDK offers.

With these data now you just have to draw them into your view and create your own signposts. For example like this:

Signpost

Junction Info

Junction info is one of our advanced safety features. When you are approaching a complex highway intersection, a JunctionInfo object will be set in a OnNaviSignListener. It contains info about lanes both continuing on highway and on the exit. You can then display this information, eg. as full screen diagram.

When you have JunctionInfo with getFromLanesCount() == 5, getToLeftLanesCount() == 4, getToRightLanesCount() == 2, it can be displayed as shown below.

Junction

Speed Limit

Speed limits indicate the legal speed for a vehicle. You can get the value either in mph or in km/h. You can register OnSpeedLimitListener to receive events about speed limit change. The class containing information about speed limit is SpeedLimitInfo.

Report Incident

Our Speed Camera database consists of more than 60 000 fixed speed cameras, red light cameras and average speed checks all over the world. On top of that, the community reports tens of thousands of additional mobile speed cameras and police checks every day. So, if you want to help to make our database bigger, use following example to report an incident. As parameter you can choose in which direction it happened on the road.