Skip to content

Latest commit

 

History

History
235 lines (222 loc) · 4.59 KB

isochrone.md

File metadata and controls

235 lines (222 loc) · 4.59 KB

Isoschrone 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 Isochrone Response Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
features GeoJSON Feature Collection



Feature Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
type String

Feature
properties Properties Object



geometry Geometry Object



Properties Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
contour Integer

polygons[i].properties.<bucket>

Request Parameter: buckets

Integer

getContourMinutes()

returns total time multiplied by fraction (current bucket in totalAmountOfBuckets)

example:
total_time = 60 minutes, amountOfBuckets = 2,

minutes_first_contour = (1/2) * 60 = 30

Buckets: describes the amount of different intervals for which a polygon is created
color String (#..) Request Parameter: contours_colors Array<String>

getContourColor()

returns specified color in passed contours_colors Array for current bucket (Default = #ff0000 (red))

Colors are not specified in a GH request. The contours_colors parameter is just used by the mapper, and not by GH itself.
opacity Double
Double 0.33 This is not parameterized since Mapbox also uses 0.33 as a default with no option to change
fill String (#...) (See .color)


fill-opacity Double (See .opacity)


fillColor String (#...) (See .color)


fillOpacity Double (See .opacity)


Geometry Object

Mapbox needed type Used Graphhopper Data type Conversion Comment
geometry.coordinates Array<Double> polygons[i].geometry.<coordiantes> Array<Double> No conversion needed
geometry.type String
String Polygon

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

Atlassian