Android Question Sygic navigation

hookshy

Well-Known Member
Licensed User
Longtime User
I use the code below to start google navigator to a specified query adress , does anyone knows who to use the same function with Sygic navigation or other well known navigation systems ?

B4X:
 Dim mapIntent As Intent
  Dim URI As String
 Dim destionation as string

    URI = "google.navigation:q=" & destionation
    mapIntent.Initialize(mapIntent.ACTION_VIEW,URI)
    mapIntent.SetComponent("google.navigation")
    StartActivity(mapIntent)
 

hookshy

Well-Known Member
Licensed User
Longtime User
I've been playing with the following code !

B4X:
    Dim mapIntent As Intent
  Dim URI As String

 
    Dim country,city,code,street,number,tip As String
    country=edit_1.Text
    city=edit_2.Text
    code=edit_3.Text
    street=edit_4.Text
    number=edit_5.Text

 
  Select edit_6.Text
    Case "drive"
        tip="drive"
    Case "walk"
        tip="walk"
    Case Else
        tip="drive"
    End Select
 


    URI= "com.sygic.aura://address |" &country& "| "&city&"| "&code& "| "&street& " | "&number&" | "&tip&"
    Log(URI)
 
    mapIntent.Initialize(mapIntent.ACTION_VIEW,URI)
    mapIntent.SetComponent("com.sygic.aura")
    StartActivity(mapIntent)
'com.sygic.aura://coordinate|3.77197|46.44694|drive
'com.sygic.aura://address|Austria|Wien||MariahilferStraße||walk
'com.sygic.aura://address|AUT|Wien||MariahilferStraße|154|drive
 
Last edited:
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
Hallo. Well done !
Do you know what happens if during navigation you call the intent again with a new destination ?
I actually use googlemap for navigation and because my target is moving I have a service in background that every 30 seconds or so launch again the intent with the new destination.
Would like to know how sygic behave in this case.
Marco
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
After the tests I have made I am not satisfied by this navigation system:
1. It is not so quick as google navigator ... free version will always promt the widow to buy full version with most users will not purchase
2. Most of time it cancel the search intent by the lack of signal strenght saying inacurate signal for gps navigation
3. If the adress does not mach exactly ..it will return no adress found and often not accurate singal and the search actions is stopped .
4. I does not do search actions like google navigator ..unsless the adress is full with all the details it will stop the intent and cancel any drive to action
poor when searching destinations with his search engine .
5. Navigation by gps coordonates sems to work smoth enough and starting the navigation on time ...useless in my case
if the map is not loaded it will return out of map error

I really thought that suporting more gps navigations app will bring more satisfaction to the users but I am changing my point for the moment !
Searching a destination seems to be a pain in the ass for sygic , as long as you do not use explicit adress.

When others find something that I miss about Sygic please let us know thank you !
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
Both iOS & Android:


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


Obsolete:


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


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:
Both iOS & Android:


1
com.sygic.aura://coordinate|viaLon0|viaLat0|viaLon1|viaLat1|finishLon|finishLat|type


Obsolete:


1
http://com.sygic.aura/coordinate|viaLon0|viaLat0|viaLon1|viaLat1|finishLon|finishLat|type
where:

  • 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:
Both iOS & Android:


1
com.sygic.aura://address|countryorcountryISOcode|city|postal|street|housenumber|type


Obsolete:


1
http://com.sygic.aura/address|countryorcountryISOcode|city|postal|street|housenumber|type


Examples:


1
2
3
com.sygic.aura://coordinate|3.77197|46.44694|drive
com.sygic.aura://address|Austria|Wien||MariahilferStraße||walk
com.sygic.aura://address|AUT|Wien||MariahilferStraße|154|drive
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
Be carefull because sygic is extremly naughty

this works
com.sygic.aura://address|Austria|Wien||MariahilferStraße||walk

this does not work
com.sygic.aura://address |Austria|Wien||MariahilferStraße||walk

com.sygic.aura://address <every single empty space will cause sygic to fail>|Austria|Wien||MariahilferStraße||walk
 
Upvote 0
Top