Distance Time Matrix

Geocode

The longitude and latitudes for a particular location

Overview #

The term geocode is used to describe a pair of coordinates. In general, we mostly handle routing requests which are on the face of planet earth so we’ve biased the terminology used here in that direction. For matrix-requests only road network matrices are currently supported so the coordinates are required to be in longitude/latitude format.

Applicable models #

  • Matrix matrix-vyv95n7wchpl

Matrix Request #

Schema definition #

message Geocode {
  required float longitude = 1;   // X
  required float latitude = 2;    // Y
}

Fields #

longitude
The horizontal decimal degrees (or x coordinate)
latitude
The vertical decimal degrees (or y coordinate)

For earth-routing the longitude should be in the interval [-180,180] and the latitude [-90,90] excluding (0,0).

Examples #

geocode {
  longitude: -6.28681087
  latitude: 53.3416138
}

Last updated 28 April 2026