UNPKG

@vepler/area-reference-types

Version:

TypeScript type definitions for Vepler Area Reference API

53 lines (52 loc) 960 B
/** * Areas Within API Types * * /api/areas/within endpoint */ import { GeographicEntityResponse } from './common'; /** * Within endpoint query parameters */ export interface WithinQueryParams { /** * Latitude coordinate */ lat: number; /** * Longitude coordinate */ lng: number; /** * Search radius in meters */ radius: number; /** * Types of entities to include (comma-separated) */ type: string; /** * Entity status filter */ status?: string; /** * Include full geometry in response */ includeGeometry?: boolean; /** * Maximum number of results */ limit?: number; } /** * Within endpoint response */ export interface WithinResponse { /** * Array of geographic entities found within the area */ results: GeographicEntityResponse[]; /** * Total count of entities found */ count: number; }