Skip to content

Latest commit

 

History

History
executable file
·
70 lines (51 loc) · 2.91 KB

RoutesApi.md

File metadata and controls

executable file
·
70 lines (51 loc) · 2.91 KB

Swagger\Client\RoutesApi

All URIs are relative to https://esi.evetech.net/latest

Method HTTP request Description
getRouteOriginDestination GET /route/{origin}/{destination}/ Get route

getRouteOriginDestination

int[] getRouteOriginDestination($destination, $origin, $avoid, $connections, $datasource, $flag, $if_none_match)

Get route

Get the systems between origin and destination --- Alternate route: /dev/route/{origin}/{destination}/ Alternate route: /legacy/route/{origin}/{destination}/ Alternate route: /v1/route/{origin}/{destination}/ --- This route is cached for up to 86400 seconds

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\RoutesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$destination = 56; // int | destination solar system ID
$origin = 56; // int | origin solar system ID
$avoid = array(56); // int[] | avoid solar system ID(s)
$connections = array(new \Swagger\Client\Model\int[]()); // int[][] | connected solar system pairs
$datasource = "tranquility"; // string | The server name you would like data from
$flag = "shortest"; // string | route security preference
$if_none_match = "if_none_match_example"; // string | ETag from a previous request. A 304 will be returned if this matches the current ETag

try {
    $result = $apiInstance->getRouteOriginDestination($destination, $origin, $avoid, $connections, $datasource, $flag, $if_none_match);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutesApi->getRouteOriginDestination: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
destination int destination solar system ID
origin int origin solar system ID
avoid int[] avoid solar system ID(s) [optional]
connections int[][] connected solar system pairs [optional]
datasource string The server name you would like data from [optional] [default to tranquility]
flag string route security preference [optional] [default to shortest]
if_none_match string ETag from a previous request. A 304 will be returned if this matches the current ETag [optional]

Return type

int[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]