In plugin .pl, how to get the mapSolutions that extract from route task ?
Actually, I want to what is the next map in my current routing !
How to get the mapSolution ?
Moderator: Moderators
-
- Developers
- Posts: 214
- Joined: 24 Nov 2010, 03:08
- Noob?: Yes
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: How to get the mapSolution ?
Code: Select all
$task->{mapSolution}
Code: Select all
$task->{mapSolution} && $task->{mapSolution}[1] && $task->{mapSolution}[1]{map}
-
- Developers
- Posts: 214
- Joined: 24 Nov 2010, 03:08
- Noob?: Yes
Re: How to get the mapSolution ?
Sorry, how to get the current 'route' task ($task) ?EternalHarvest wrote:Code: Select all
$task->{mapSolution}
Code: Select all
$task->{mapSolution} && $task->{mapSolution}[1] && $task->{mapSolution}[1]{map}
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: How to get the mapSolution ?
Code: Select all
if (defined(my $routeIndex = AI::findAction('route')) and my $task = AI::args($routeIndex)) {
...