DrayEasy API v2

DrayEasy API v2


Intermodal Region Suggestion

<h2>Overview</h2> <p>The API endpoint is designed to provide suggestions for intermodal regions based on a specified city ID. This GET request fetches a list of intermodal regions that are relevant to the given city, offering detailed information about each region's geographical location, as well as its access to ocean and ramp ports. This endpoint is particularly useful for logistics companies, freight forwarders, and supply chain managers looking to optimize their transportation and distribution strategies based on specific geographic areas.</p> <h2>Request</h2> <ul> <li>Method: <strong>GET</strong></li> <li>URI: <code>/intermodalRegions/cities/{cityId}/suggestion</code></li> </ul> <h2>Code Example</h2> <pre><code>Request: curl https://api.drayeasy.com/api/v2/intermodalRegions/cities/48/suggestion' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer xxxxxxxxx' Response: HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 { &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;: 21, &amp;quot;name&amp;quot;: &amp;quot;Norfolk - VA&amp;quot;, &amp;quot;city&amp;quot;: &amp;quot;Norfolk, VA, USA&amp;quot;, &amp;quot;latitude&amp;quot;: 36.921972, &amp;quot;longitude&amp;quot;: -76.324071, &amp;quot;has_ocean_port&amp;quot;: true, &amp;quot;has_ramp_port&amp;quot;: true }, { &amp;quot;id&amp;quot;: 66, &amp;quot;name&amp;quot;: &amp;quot;Baltimore - MD&amp;quot;, &amp;quot;city&amp;quot;: &amp;quot;Baltimore, MD, USA&amp;quot;, &amp;quot;latitude&amp;quot;: 39.258255, &amp;quot;longitude&amp;quot;: -76.539426, &amp;quot;has_ocean_port&amp;quot;: true, &amp;quot;has_ramp_port&amp;quot;: true }, ... ] }</code></pre> <h2>Response Fields Description</h2> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>Integer</td> <td>A unique identifier for the intermodal region.</td> </tr> <tr> <td>name</td> <td>String</td> <td>The name of the intermodal region, typically including the city name and state abbreviation.</td> </tr> <tr> <td>city</td> <td>String</td> <td>A detailed string that includes the city name, state abbreviation, and country.</td> </tr> <tr> <td>latitude</td> <td>Float</td> <td>The geographic latitude of the intermodal region's central point.</td> </tr> <tr> <td>longitude</td> <td>Float</td> <td>The geographic longitude of the intermodal region's central point.</td> </tr> <tr> <td>has_ocean_port</td> <td>Boolean</td> <td>Indicates whether the intermodal region has access to an ocean port <strong>true</strong> or not <strong>false</strong>.</td> </tr> <tr> <td>has_ramp_port</td> <td>Boolean</td> <td>Indicates whether the region includes a ramp port <strong>true</strong> or lacks one <strong>false</strong>.</td> </tr> </tbody> </table>

页面列表

ITEM_HTML