se '::Util::TypeConstraints';
use Text::Trim;
use Geo::Routing::Driver::OSRM::Route;
use JSON::XS qw(decode_json);
with qw(Geo::Routing::Role::Driver);
has osrm_path => (
is => 'ro',
qw(
json
xml
);
has query_method => (
is => 'ro',
isa => 'OSRMQueryMethod',
default => 'json',
documentation => "Should we make XML or JSON request
};
} elsif ($method eq 'json') {
my $json = decode_json($content);
return if $json->{status} eq '207';
my $route_summary = $json->{route_summary};
my ($dis
h 'Geo::Routing::Role::Query';
sub query_string {
my ($self, $method) = @_;
$method ||= "json";
my @atoms = qw(from_latitude from_longitude to_latitude to_longitude);
my $query_stri