| 1 | package Geo::Routing::Driver::OSRM::Query; | ||||||||||||
| 2 | 1 | ▶ | BEGIN { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 1 | $Geo::Routing::Driver::OSRM::Query::AUTHORITY = 'cpan:AVAR'; | |||||||||||
| 4 | } | ||||||||||||
| 5 | 1 | ▶ | BEGIN { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | $Geo::Routing::Driver::OSRM::Query::VERSION = '0.11'; | |||||||||||
| 7 | } | ||||||||||||
| 8 | 1 | ▶ | use Any::Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | 1 | ▶ | use warnings FATAL => "all"; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | |||||||||||||
| 11 | 1 | with 'Geo::Routing::Role::Query'; | |||||||||||
| 12 | |||||||||||||
| 13 | 0 | ▶ | sub query_string { | ||||||||||
|
Subroutine
query_string: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 14 | 0 | my ($self, $method) = @_; | |||||||||||
| 15 | 0 | ▶ | $method ||= "json"; | ||||||||||
|
Condition0%0/2
$method ||= "json"
MC/DC0%0/1
$method ||= "json"
$method
Truth table0%0/2
A
A= $method
| |||||||||||||
| 16 | |||||||||||||
| 17 | 0 | my @atoms = qw(from_latitude from_longitude to_latitude to_longitude); | |||||||||||
| 18 | |||||||||||||
| 19 | 0 | my $query_string = "&output=$method&instructions=true&geometry=false&" . join '&', map { $self->$_ } @atoms; | |||||||||||
| 20 | |||||||||||||
| 21 | 0 | return $query_string; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 1 | 1; | |||||||||||