Skip to content

Latest commit

 

History

History
173 lines (160 loc) · 3.89 KB

matrix.md

File metadata and controls

173 lines (160 loc) · 3.89 KB

Matrix API Mapping Documentation

  • bold = Default Value
  • italic = function
  • bold_italic = mapping not possible
  • [i] = Given JSONObject in the JSONArray
  • < ... > = final property that holds value(s)
  • "Request Parameter" = data that is passed along in a request to the proxy, but not used by Graphhopper directly. This information is only used in the mappings. Serves the purpose of filling holes of information that is not included in a Graphhopper response

Mapbox Matrix Response Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
code String
String Ok
durations Array<Array<Double>> <times> Array<Array<Double>> No conversion needed Matrix of durations
distances Array<Array<Double>> <distances> Array<Array<Double>> No conversion needed
sources Array<SourceObject>



destinations Array<DestinationObject>



Source Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
name String No way to get the name of locations from a GH Matrix Response String ' ' Emtpy String
location Properties Object Request Parameters: point; from_point; Array<String> conversion to Array<Double> the sources are not part of a GH response. They are fetched from the request as either point or from_point parameters

Destination Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
name String No way to get the name of locations from a GH Matrix Response String ' ' Emtpy String
location Properties Object Request Parameters: point; to_point; Array<String> conversion to Array<Double> the destinations are not part of a GH response. They are fetched from the request as either point or to_point parameters

Ignored Data from the GH Response:

  • weights
  • info

Document generated by Confluence on 05.Feb.2019 9:40

Atlassian