geo31 عملية

Geo API

Regions, zones, geocoding, and reverse geocoding.

Queries

QUERY

addressSearch

#

الوسائط

  • queryString!

    Search query (address, place name, or landmark)

  • countryCodeString

    Optional country code to limit search (ISO 3166-1 alpha-2)

  • limitInt

    Maximum number of results (default: 10)

  • bias

    Coordinates to bias result ranking toward (searcher's position)

  • languageString

    Language tag for localized result labels (e.g., "fa", "en")

يُرجع[!]!
QUERY

adminCountryLookups

#

Countries people have asked about, most-asked-about first. Counts only. Join against paymentGatewayCoverage, smsProviderCoverage and any other coverage query to decide which of these we can serve — that answer belongs to whichever service owns the rail, and it changes on every deploy. Unpaginated because the table cannot exceed 676 rows.

يُرجع[!]!
QUERY

adminGeoEngineCities

#

Cities whose routes and addresses our own map engines may answer, by name (PlatformAdmin only). Unpaginated: the list is the handful of cities we host data for. Each city comes with the workspaces operating in it.

يُرجع[!]!
QUERY

adminGeoEngineStatus

#

Whether the self-hosted map engines are configured and answering (PlatformAdmin only).

يُرجع!
QUERY

adminTenantRegions

#

List the operational regions of a specific tenant (PlatformAdmin only). Mirrors tenantRegions but takes the target tenant from the argument instead of the request context, so platform admins can inspect a tenant they're not impersonating. Used by the admin tenant detail page.

الوسائط

  • tenantId!
  • input!

    افتراضي

    {
      "filter": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
يُرجع!
QUERY

getAddressDetails

#

Get detailed address information for form prefilling Retrieves comprehensive address components including: - Street name and number - Unit/apartment number - Building name - Neighborhood/district - City, region, postal code - Country code - Coordinates and geohash - Address types and verification level Either place_id OR both latitude and longitude must be provided.

الوسائط

  • input!
يُرجع!
QUERY

listCountries

#

الوسائط

  • searchString

    Optional search term to filter countries

يُرجع[!]!
QUERY

reverseGeocode

#

الوسائط

  • coordinates!

    Coordinates

يُرجع!
QUERY

tenantRegion

#

Get one of the caller's tenant regions by ID. Another tenant's region resolves to null, as if it did not exist.

الوسائط

  • id!
يُرجع
QUERY

tenantRegions

#

List tenant regions with filtering and pagination.

الوسائط

  • input!

    افتراضي

    {
      "filter": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
يُرجع!
QUERY

zone

#

Get one of the caller's tenant zones by ID. Another tenant's zone resolves to null, as if it did not exist.

الوسائط

  • id!
يُرجع
QUERY

zoneGroupAdmin

#

الوسائط

  • id!
يُرجع
QUERY

zoneGroupsAdmin

#

Zone groups, with their member zones named; by name unless sort asks otherwise.

الوسائط

  • input!

    افتراضي

    {
      "regionId": null,
      "app": null,
      "includeInactive": false,
      "sort": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
يُرجع!
QUERY

zones

#

List zones with filtering and pagination

الوسائط

  • input!

    افتراضي

    {
      "filter": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
يُرجع!

Mutations

MUTATION

adminAddGeoEngineCity

#

Put a city on the list (PlatformAdmin only). The city starts with its map data requested and every capability off. Without radiusMeters the coverage radius is sized from the city's population, the same way an auto-created region is.

الوسائط

  • cityId!
  • radiusMetersInt

    Coverage radius around the city centre, 1000 to 100000 metres.

يُرجع!
MUTATION

adminRemoveGeoEngineCity

#

Take a city off the list (PlatformAdmin only). Allowed only when all three capabilities are off. Returns false when the city was not on the list.

الوسائط

  • cityId!
يُرجعBoolean!
MUTATION

adminRequestGeoEngineCityRefresh

#

Ask for a city's map data to be rebuilt (PlatformAdmin only). Capabilities stay as they are: the data already loaded keeps serving until the rebuilt data replaces it.

الوسائط

  • cityId!
يُرجع!
MUTATION

adminRunGeoEngineCityCheck

#

Compare our routing engine against Google for a city, and store the result (PlatformAdmin only). A check that PASSED also sets the trip-time factor it implies, unless the factor was set by hand or learned from completed trips. Each test trip is one billed Google route request.

الوسائط

  • cityId!
  • sampleSizeInt

    Test trips to compare: 10 to 100, default 30.

يُرجع!
MUTATION

adminSetGeoEngineCityCapabilities

#

Switch a city's capabilities on or off (PlatformAdmin only). A capability can be switched on only once the city's map data is READY. Routing additionally needs a check that PASSED, unless force is set. Switching anything off is always allowed.

الوسائط

  • cityId!
  • input!
يُرجع!
MUTATION

adminSetGeoEngineCityDurationFactor

#

Set a city's trip-time factor by hand (PlatformAdmin only).

الوسائط

  • cityId!
  • factorFloat!

    Multiplier for our routing engine's durations, 0.25 to 5.

يُرجع!
MUTATION

createTenantRegion

#

Create a new tenant region.

الوسائط

  • input!
يُرجع!
MUTATION

createZone

#

Create a new zone

الوسائط

  • input!
يُرجع!
MUTATION

createZoneGroup

#

الوسائط

  • input!
يُرجع!
MUTATION

deleteTenantRegion

#

Delete (deactivate) a tenant region.

الوسائط

  • id!
يُرجعBoolean!
MUTATION

deleteZone

#

Delete (deactivate) a zone

الوسائط

  • id!
يُرجعBoolean!
MUTATION

deleteZoneGroup

#

Delete a group. Refused while group flat fares use it.

الوسائط

  • id!
يُرجعBoolean!
MUTATION

recordCountryLookup

#

Record that someone asked whether we cover a country. Public and unauthenticated — see the module header. Returns false rather than erroring for a code that is not two ASCII letters, so a malformed value cannot turn a marketing page into an error state.

الوسائط

  • countryCodeString!

    ISO 3166-1 alpha-2 country code (e.g. "RS", "GE").

يُرجعBoolean!
MUTATION

updateTenantRegion

#

Update an existing tenant region.

الوسائط

  • input!
يُرجع!
MUTATION

updateZone

#

Update an existing zone

الوسائط

  • input!
يُرجع!
MUTATION

updateZoneBoundaries

#

Update zone boundaries (polygon)

الوسائط

  • input!
يُرجع!
MUTATION

updateZoneGroup

#

الوسائط

  • input!
يُرجع!