Help Center/Advanced

Developers Only: Sygic implementation to your app / Android SDK / iPhone SDK / Url Handler

Matus
posted this on October 17, 2012 10:20

Sygic supports an application directed URL scheme that third party applications can use to launch Sygic. Custom URL schemes pass the information to the application via URL. It enables the application to execute several different tasks when launched. This can be done by providing GPS coordinates or an address. You can call these schemes from your application or use them as links in emails or on websites.


Entering coordinates:

iOS  specific:

com.sygic.aura://coordinate | lon | lat | type

Android specific:

 

 where:

  • lon = longitude
  • lat = latitude
  • type = drive, walk or show (choose one)

Actions taken by the application (parameter type):

  • Drive - drive by car to the desired destination (drive mode)
  • Walk - walk to the desired destination (walk mode)
  • Show - application will show the location on map

Longitude and latitude have to be expressed as decimals (65.5375). Other formats will not work (e.g. 65° 32.25' or 65° 32' 15.275").

 

Entering via points:

iOS specific:

  • viaLon0 = longitude of the first via point
  • viaLat0 = latitude of the first via point
  • viaLon1 = longitude of the second via point
  • viaLat1 = latitude of the first via point
  • finishLon = longitude of the destination
  • finishLat = latitude of the destination
  • type = (see Entering coordinates above)

You can add as many via points as needed.


Entering address:

 iOS specific:

com.sygic.aura://address | country or country ISO code | city | postal | street | house number | type

Android specific:


  • Examples:

 When entering address you can leave out some values as an empty space. In this case you must use | either way.


 

Objective C code to run the application from other application:

 
Topic is closed for comments