Skip to content
ajar.Book a demo

Place predict

uber.place.predict

View connector

Suggest Uber pickup or destination places

POST /v1/operations/uber.place.predict

Headers

Authorization: Bearer YOUR_AJAR_API_KEY
x-uber-session: YOUR_BASE64URL_UBER_SESSION
Content-Type: application/json

Inputs

ParameterExample typeExample value
querystring"Big Ben"
rolestring"destination"

Example input

{
  "query": "Big Ben",
  "role": "destination"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/uber/place-predict.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "near": {
      "additionalProperties": false,
      "properties": {
        "latitude": {
          "maximum": 90,
          "minimum": -90,
          "type": "number"
        },
        "longitude": {
          "maximum": 180,
          "minimum": -180,
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ],
      "type": "object"
    },
    "query": {
      "maxLength": 200,
      "minLength": 2,
      "type": "string"
    },
    "role": {
      "enum": [
        "pickup",
        "destination"
      ]
    }
  },
  "required": [
    "query",
    "role"
  ],
  "title": "Uber place suggestion input",
  "type": "object"
}