code

String indicating the state of the response. This is a separate code than the HTTP status code. On normal valid responses, the value will be Ok. The possible responses are listed below:

  • Ok:200 Normal success case

  • NoRoute: 200 There was no route found for the given coordinates. Check for impossible routes (e.g. routes over oceans without ferry connections).

  • NoSegment: 200 No road segment could be matched for coordinates. Check for coordinates too far away from a road.

  • ProfileNotFound: 404 Use a valid profile as described above

  • InvalidInput: 422

Since

1.0.0