Map API

📋 Table of Contents

Overview

The Map API provides comprehensive mapping and geospatial services for the OASIS ecosystem. It handles map creation, management, visualization, and analytics with support for 2D/3D objects, sprites, routes, and real-time updates.

Map Management

Get All Maps

GET /api/map/all
Authorization: Bearer YOUR_TOKEN

Query Parameters:

  • limit (int, optional): Number of results (default: 50)

  • offset (int, optional): Number to skip (default: 0)

  • status (string, optional): Filter by status (Active, Inactive, Archived)

  • type (string, optional): Filter by type (2D, 3D, Hybrid)

  • sortBy (string, optional): Sort field (name, createdAt, lastModified)

  • sortOrder (string, optional): Sort order (asc/desc, default: desc)

Response:

Get Map by ID

Parameters:

  • mapId (string): Map UUID

Response:

Create Map

Request Body:

Response:

Update Map

Parameters:

  • mapId (string): Map UUID

Request Body:

Delete Map

Parameters:

  • mapId (string): Map UUID

Map Operations

Set Map Provider

Parameters:

  • providerType (string): Map provider type (OpenStreetMap, GoogleMaps, Mapbox, Custom)

Response:

Draw 3D Object

Request Body:

Response:

Draw 2D Sprite

Request Body:

Draw 2D Sprite on HUD

Request Body:

Place Holon

Request Body:

Place Building

Request Body:

Place Quest

Request Body:

Place GeoNFT

Request Body:

Place GeoHotSpot

Request Body:

Place OAPP

Request Body:

Map Visualization

Pan Map Left

Response:

Pan Map Right

Pan Map Up

Pan Map Down

Zoom Out

Response:

Zoom In

Zoom to Holon

Request Body:

Zoom to Building

Request Body:

Zoom to Quest

Request Body:

Zoom to GeoNFT

Request Body:

Zoom to GeoHotSpot

Request Body:

Zoom to OAPP

Request Body:

Zoom to Coordinates

Request Body:

Map Analytics

Get Map Statistics

Parameters:

  • mapId (string): Map UUID

Response:

Get Map Performance

Parameters:

  • mapId (string): Map UUID

Response:

Get Map Health

Parameters:

  • mapId (string): Map UUID

Response:

Error Responses

Map Not Found

Invalid Coordinates

Object Not Found

Route Not Found

Provider Not Supported


← Previous: Settings API | Next: Chat API

Last updated