How can I get the route of a shipment via API ?
For Ocean shipments, you can use the OCEAN – Route of the Shipment endpoint to retrieve the shipment's route data in GeoJSON format.
The response includes the port locations, the vessel's current position, and the past and future paths of the shipment. Since the data is returned as a GeoJSON structure, you can use it directly to visualize the shipment route on your own map without needing to store historical coordinates on your side.

For endpoint details and the response structure, please refer to the OCEAN – Route of the Shipment section in the Shipsgo API documentation.