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.
iOS specific:
com.sygic.aura://coordinate | lon | lat | type
Android specific:
com.sygic.aura://coordinate | lon | lat | typehttp://com.sygic.aura/coordinate | lon | lat | type
where:
Actions taken by the application (parameter type):
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").
iOS specific:
You can add as many via points as needed.
iOS specific:
com.sygic.aura://address | country or country ISO code | city | postal | street | house number | type
Android specific:
http://com.sygic.aura/address | country or country ISO code | city | postal | street | house number | type
When entering address you can leave out some values as an empty space. In this case you must use | either way.
String str = "http://com.sygic.aura/coordinate|15.06591|47.73341|walk"; startActivity( new Intent(Intent.ACTION_VIEW, Uri.parse(str)) );