Group
Extension

Matches 1

Map-Tube-Server ( M/MA/MANWAR/Map-Tube-Server-0.06.tar.gz, MANWAR, 2024; MetaCPAN )
Map-Tube-Server/lib/Map/Tube/Server.pm ( view source; MetaCPAN )
T INSTALLED

=back

=cut

hook before => sub {
    response_header 'Content-Type' => 'application/json';
};

=head1 ROUTES

=head2 GET /map-tube/v1/shortest-route/:map/:start/:end

Return the shortest
 C<$start> to C<$end> in the C<$map>.

Returns ref to an array of shortest route stations list in JSON format.

For example:

    curl http://127.0.0.1:5000/map-tube/v1/shortest-route/london/baker%20s
t};
};

=head2 GET /map-tube/v1/stations/:map/:line

Returns ref to an array of stations list  in JSON format for the given C<map> and
C<line>. The C<map> can be any of the supported maps. And the  C<

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.