This is a sample KB to integrate Waze in a GeneXus Application using routing via URL scheme.
The application shows a list of places and tapping one of them the route from your position to the tapped place is shown:
Download the apk to your Android device to see it running.
Modifiy data using Web app
Technical info
DriveTo panel includes this piece of code to connect to waze:
Event 'Directions'
composite
&WazeUrl = Format(!"waze://?ll=%1&navigate=yes", PlaceLocation.Trim())
if (not &WazeUrl.IsEmpty())
&CanOpenWaze = GeneXus.SD.Interop.CanOpen(&WazeUrl)
else
msg("No location defined",nowait)
endif
if (&CanOpenWaze)
GeneXus.SD.Interop.Open(&WazeUrl)
else
msg("Waze not installed", nowait)
endif
endcomposite
Endevent
If you are working with IOS, you must consider: https://wiki.genexus.com/commwiki/servlet/wiki?29371,Application+Queries+Schemes+Property,
Check How to open the native map app requesting directions between two locations ? for routing using Google Maps or Apple Map