From wiki.ginstr.com
Jump to: navigation, search
 
Line 42: Line 42:
  
 
====Example====
 
====Example====
:<code>@+id/gnMapView</code> - GnMap widget<br>
+
:<code>@+id/gnMapView</code> - DtRows widget<br>
 +
:<code>uploadedImage_gps</code> - column name<br>
 +
:<code>@variable/routeMapPath</code> - DtText variable<br>
 +
:<code>@+id/gnMapView</code> - eventSourceId<br>
 +
:<code>gn:act_set</code> - eventId<br>
 
:; ⤷ <code>[gn:act_getMapRoutePath]|[@+id/gnMapView,uploadedImage_gps;@variable/routeMapPath;@+id/gnMapView,gn:act_set],</code>
 
:; ⤷ <code>[gn:act_getMapRoutePath]|[@+id/gnMapView,uploadedImage_gps;@variable/routeMapPath;@+id/gnMapView,gn:act_set],</code>
 
<hr>
 
<hr>

Latest revision as of 15:02, 1 June 2020

act_getMapRoutePath (M103.8.0.6)

Description
Retrieves the route path data from OSRM server
Action returns
void

Action signatures

[gn:act_getMapRoutePath]|[sourceId(DtRows),columnName;targetId(DtText);eventSourceId,eventId],
Parameter Description
source source which contains list of gps coordinates
columnName name of cloumn which contains list of gps coordinates
target target where the route path data will be stored
eventSourceId source where the actionSet will be executed
eventId source which represents the actionSet name

Example

@+id/gnMapView - DtRows widget
uploadedImage_gps - column name
@variable/routeMapPath - DtText variable
@+id/gnMapView - eventSourceId
gn:act_set - eventId
[gn:act_getMapRoutePath]|[@+id/gnMapView,uploadedImage_gps;@variable/routeMapPath;@+id/gnMapView,gn:act_set],