(RPG) Showing route from current location to a destination

Please mark posts as being for RPG or RDMLX (LANSA) developers.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

(RPG) Showing route from current location to a destination

Post by MarkDuignan »

The attached RPG program can be called by any form view.
The parameters are a destination latitude/longitude or a destination address.

The program causes a route map starting at the current iPad/iPhone location and ending at the location defined by the passed parameters to be displayed – basically how do I get from where I am now to a specified destination.

It is assumed that the application had at some stage previously turned on geo location like this:
LRNG_AssignStrToProp('Default' : '/System.Geo.UpdateFrequency');
Attachments
exam0071.txt
Showing route from current location to a destination
(2.51 KiB) Downloaded 389 times
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG) Showing route from current location to a destinati

Post by MarkDuignan »

This example is now shipped with LongRange.
See http://longrange.lansa.com.au/viewtopic.php?f=13&t=111
Post Reply