Geobase Map Provider

High-performance COG imagery serving platform for advanced AI analysis

Setup

🔑

Get your project reference and API key from the Geobase under settings.

import { geoai } from "@geobase-js/geoai";
 
// Configuration
const geobaseParams = {
  provider: "geobase",
  projectRef: process.env.GEOBASE_PROJECT_REF,
  apikey: process.env.GEOBASE_API_KEY,
  cogImagery: "your-cog-imagery-url",
};
 
// Initialize pipeline with Geobase
const pipeline = await geoai.pipeline(
  [{ task: "building-detection" }],
  geobaseParams
);
 
// Run inference on polygon
const results = await pipeline.inference({
  inputs: { polygon: myPolygon },
  mapSourceParams: { zoomLevel: 18 },
});

Parameters

type GeobaseParams = {
  provider: "geobase";
  projectRef: string; // Your Geobase project reference
  apikey: string; // Your Geobase API key
  cogImagery: string; // URL to your COG imagery
};
🌍

Serves your own Cloud Optimized GeoTIFF (COG) imagery. Task compatibility depends on your COG specifications (resolution, bands, etc.)