Valhalla · JSON-LD Context

Valhalla Context

JSON-LD context defining the semantic vocabulary for Valhalla from Valhalla.

0 Classes 56 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
geo: http://www.w3.org/2003/01/geo/wgs84_pos#
valhalla: https://valhalla.github.io/valhalla/api/
xsd: http://www.w3.org/2001/XMLSchema#

Properties

Property Type Container
lat decimal
lon decimal
Location
name
street
RouteRequest
IsochroneRequest
MatrixRequest
HeightRequest
TraceRouteRequest
TraceAttributesRequest
ExpansionRequest
LocateRequest
costing
locations list
sources list
targets list
contours list
shape list
units
language
directions_type
alternates integer
shape_format
polygons boolean
denoise decimal
generalize decimal
range boolean
height_precision integer
resample_distance decimal
Contour
time decimal
distance
date_time
exclude_locations list
exclude_polygons
linear_cost_factors list
Trip
Route
legs list
maneuvers list
summary
length
elevation
GeoJSON
FeatureCollection
Feature
geometry
coordinates
ValhallaCostingType
CostingOptions
use_highways decimal
use_tolls decimal
use_ferry decimal
use_hills decimal
use_roads decimal

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
    "valhalla": "https://valhalla.github.io/valhalla/api/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "lat": { "@id": "geo:lat", "@type": "xsd:decimal" },
    "lon": { "@id": "geo:long", "@type": "xsd:decimal" },

    "Location": { "@id": "schema:GeoCoordinates" },
    "name": { "@id": "schema:name" },
    "street": { "@id": "schema:streetAddress" },

    "RouteRequest": { "@id": "valhalla:route" },
    "IsochroneRequest": { "@id": "valhalla:isochrone" },
    "MatrixRequest": { "@id": "valhalla:sources_to_targets" },
    "HeightRequest": { "@id": "valhalla:height" },
    "TraceRouteRequest": { "@id": "valhalla:trace_route" },
    "TraceAttributesRequest": { "@id": "valhalla:trace_attributes" },
    "ExpansionRequest": { "@id": "valhalla:expansion" },
    "LocateRequest": { "@id": "valhalla:locate" },

    "costing": { "@id": "valhalla:costing" },
    "locations": { "@id": "valhalla:locations", "@container": "@list" },
    "sources": { "@id": "valhalla:sources", "@container": "@list" },
    "targets": { "@id": "valhalla:targets", "@container": "@list" },
    "contours": { "@id": "valhalla:contours", "@container": "@list" },
    "shape": { "@id": "valhalla:shape", "@container": "@list" },

    "units": { "@id": "valhalla:units" },
    "language": { "@id": "schema:inLanguage" },
    "directions_type": { "@id": "valhalla:directions_type" },
    "alternates": { "@id": "valhalla:alternates", "@type": "xsd:integer" },
    "shape_format": { "@id": "valhalla:shape_format" },
    "polygons": { "@id": "valhalla:polygons", "@type": "xsd:boolean" },
    "denoise": { "@id": "valhalla:denoise", "@type": "xsd:decimal" },
    "generalize": { "@id": "valhalla:generalize", "@type": "xsd:decimal" },
    "range": { "@id": "valhalla:range", "@type": "xsd:boolean" },
    "height_precision": { "@id": "valhalla:height_precision", "@type": "xsd:integer" },
    "resample_distance": { "@id": "valhalla:resample_distance", "@type": "xsd:decimal" },

    "Contour": { "@id": "valhalla:Contour" },
    "time": { "@id": "valhalla:contour_time", "@type": "xsd:decimal" },
    "distance": { "@id": "schema:distance" },

    "date_time": { "@id": "valhalla:date_time" },
    "exclude_locations": { "@id": "valhalla:exclude_locations", "@container": "@list" },
    "exclude_polygons": { "@id": "valhalla:exclude_polygons" },
    "linear_cost_factors": { "@id": "valhalla:linear_cost_factors", "@container": "@list" },

    "Trip": { "@id": "schema:Trip" },
    "Route": { "@id": "schema:Trip" },
    "legs": { "@id": "valhalla:legs", "@container": "@list" },
    "maneuvers": { "@id": "valhalla:maneuvers", "@container": "@list" },
    "summary": { "@id": "schema:description" },
    "length": { "@id": "schema:distance" },
    "elevation": { "@id": "schema:elevation" },

    "GeoJSON": { "@id": "https://geojson.org/geojson-ld/vocab.html#" },
    "FeatureCollection": { "@id": "https://geojson.org/geojson-ld/vocab.html#FeatureCollection" },
    "Feature": { "@id": "https://geojson.org/geojson-ld/vocab.html#Feature" },
    "geometry": { "@id": "https://geojson.org/geojson-ld/vocab.html#geometry" },
    "coordinates": { "@id": "https://geojson.org/geojson-ld/vocab.html#coordinates" },

    "ValhallaCostingType": { "@id": "valhalla:CostingType" },
    "CostingOptions": { "@id": "valhalla:CostingOptions" },
    "use_highways": { "@id": "valhalla:use_highways", "@type": "xsd:decimal" },
    "use_tolls": { "@id": "valhalla:use_tolls", "@type": "xsd:decimal" },
    "use_ferry": { "@id": "valhalla:use_ferry", "@type": "xsd:decimal" },
    "use_hills": { "@id": "valhalla:use_hills", "@type": "xsd:decimal" },
    "use_roads": { "@id": "valhalla:use_roads", "@type": "xsd:decimal" }
  },
  "@type": "schema:DataCatalog",
  "@id": "https://valhalla.github.io/valhalla/",
  "schema:name": "Valhalla Routing API",
  "schema:description": "Open-source routing engine for OpenStreetMap data providing turn-by-turn navigation, isochrones, map matching, elevation, and matrix services.",
  "schema:url": "https://valhalla.github.io/valhalla/",
  "schema:license": "https://github.com/valhalla/valhalla/blob/master/COPYING",
  "schema:codeRepository": "https://github.com/valhalla/valhalla",
  "schema:programmingLanguage": "C++",
  "schema:keywords": ["routing", "navigation", "OpenStreetMap", "isochrone", "map matching", "geospatial", "open source"]
}