Ola · JSON-LD Context

Ola Context

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

13 Classes 36 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
ola: https://developers.olacabs.com/vocab/
olamaps: https://maps.olakrutrim.com/vocab/
xsd: http://www.w3.org/2001/XMLSchema#

Classes

RideBooking RideEstimate RideTracking RideCancellation RideFeedback TripHistory CorporateUser ExpenseCode Driver Rider Place Route GeocodingResult

Properties

Property Type Container
booking_id string
ride_id string
status string
category string
pickup_lat double
pickup_lng double
dropoff_lat double
dropoff_lng double
eta integer
fare_breakup reference
currency string
minimum_fare double
distance double
duration integer
driver_name string
driver_rating double
vehicle_number string
vehicle_model string
driver_lat double
driver_lng double
cancellation_code string
feedback_rating integer
feedback_comment string
employee_id string
corporate_token string
expense_code string
formatted_address string
geometry reference
place_id string
name string
types string
steps reference
overview_polyline string
duration_in_traffic integer
speed_limit integer
language string

JSON-LD Document

ola-context.jsonld Raw ↑
{
  "@context": {
    "@version": 1.1,
    "schema": "https://schema.org/",
    "ola": "https://developers.olacabs.com/vocab/",
    "olamaps": "https://maps.olakrutrim.com/vocab/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",

    "RideBooking": "ola:RideBooking",
    "RideEstimate": "ola:RideEstimate",
    "RideTracking": "ola:RideTracking",
    "RideCancellation": "ola:RideCancellation",
    "RideFeedback": "ola:RideFeedback",
    "TripHistory": "ola:TripHistory",
    "CorporateUser": "ola:CorporateUser",
    "ExpenseCode": "ola:ExpenseCode",
    "Driver": "schema:Person",
    "Rider": "schema:Person",
    "Place": "schema:Place",
    "Route": "olamaps:Route",
    "GeocodingResult": "olamaps:GeocodingResult",

    "booking_id": { "@id": "schema:identifier", "@type": "xsd:string" },
    "ride_id": { "@id": "schema:identifier", "@type": "xsd:string" },
    "status": { "@id": "schema:orderStatus", "@type": "xsd:string" },
    "category": { "@id": "ola:rideCategory", "@type": "xsd:string" },
    "pickup_lat": { "@id": "schema:latitude", "@type": "xsd:double" },
    "pickup_lng": { "@id": "schema:longitude", "@type": "xsd:double" },
    "dropoff_lat": { "@id": "ola:dropoffLatitude", "@type": "xsd:double" },
    "dropoff_lng": { "@id": "ola:dropoffLongitude", "@type": "xsd:double" },
    "eta": { "@id": "ola:estimatedTimeOfArrival", "@type": "xsd:integer" },
    "fare_breakup": { "@id": "schema:priceSpecification", "@type": "@id" },
    "currency": { "@id": "schema:priceCurrency", "@type": "xsd:string" },
    "minimum_fare": { "@id": "schema:minPrice", "@type": "xsd:double" },
    "distance": { "@id": "schema:distance", "@type": "xsd:double" },
    "duration": { "@id": "schema:duration", "@type": "xsd:integer" },

    "driver_name": { "@id": "schema:name", "@type": "xsd:string" },
    "driver_rating": { "@id": "schema:ratingValue", "@type": "xsd:double" },
    "vehicle_number": { "@id": "ola:vehicleNumber", "@type": "xsd:string" },
    "vehicle_model": { "@id": "ola:vehicleModel", "@type": "xsd:string" },
    "driver_lat": { "@id": "ola:driverLatitude", "@type": "xsd:double" },
    "driver_lng": { "@id": "ola:driverLongitude", "@type": "xsd:double" },

    "cancellation_code": { "@id": "ola:cancellationCode", "@type": "xsd:string" },
    "feedback_rating": { "@id": "schema:ratingValue", "@type": "xsd:integer" },
    "feedback_comment": { "@id": "schema:reviewBody", "@type": "xsd:string" },

    "employee_id": { "@id": "schema:identifier", "@type": "xsd:string" },
    "corporate_token": { "@id": "ola:corporateToken", "@type": "xsd:string" },
    "expense_code": { "@id": "ola:expenseCode", "@type": "xsd:string" },

    "formatted_address": { "@id": "schema:streetAddress", "@type": "xsd:string" },
    "geometry": { "@id": "schema:geo", "@type": "@id" },
    "place_id": { "@id": "schema:identifier", "@type": "xsd:string" },
    "name": { "@id": "schema:name", "@type": "xsd:string" },
    "types": { "@id": "schema:additionalType", "@type": "xsd:string" },
    "steps": { "@id": "olamaps:routeSteps", "@type": "@id" },
    "overview_polyline": { "@id": "olamaps:overviewPolyline", "@type": "xsd:string" },
    "duration_in_traffic": { "@id": "olamaps:durationInTraffic", "@type": "xsd:integer" },
    "speed_limit": { "@id": "olamaps:speedLimit", "@type": "xsd:integer" },
    "language": { "@id": "schema:inLanguage", "@type": "xsd:string" }
  }
}