New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@openassistant/osm

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openassistant/osm

The OSM tools for OpenAssistant

latest
npmnpm
Version
1.0.0-alpha.0
Version published
Maintainers
0
Created
Source

OpenStreetMap Tools

The OpenStreetMap tools for OpenAssistant provides a suite of tools that can invoke OpenStreetMap related APIs e.g. geocoding, calculate routing, fetch OSM roads, generate isochrone etc.

Features

Tool NameDescription
geocodingconverts addresses into geographic coordinates (latitude and longitude) using OpenStreetMap's Nominatim service.
routingcalculates routes between two points using Mapbox's Directions API
isochronegenerates isochrone polygons showing reachable areas within a given time or distance limit
roadsfetch road networks based on a boundary and road type using OSM Overpass API
queryUSZipcodesquery US zipcodes within a given map bounds
getUsStateGeojsonget the GeoJSON data of one or more United States states
getUsCountyGeojsonget the GeoJSON data of one or more United States counties
getUsZipcodeGeojsonget the GeoJSON data of one or more United States zipcodes

Installation

npm install @openassistant/osm @openassistant/utils ai

Quick Start

import { geocoding, GeocodingTool } from "@openassistant/osm";
import { convertToVercelAiTool } from '@openassistant/utils';
import { generateText } from 'ai';

const result = await generateText({
  model: openai('gpt-4.1', { apiKey: key }),
  prompt: 'What are the coordinates of the Eiffel Tower?',
  tools: {
    geocoding: convertToVercelAiTool(geocoding),
  },
});

console.log(result);

:::tip The OpenStreetMap tools can be mixed with other tools for more complex tasks. For example, if you have a point datasets in the US, you can use OSM tool to answer questions like "What are the total revenus in the zipcodes area in Maricopa county?"

The LLM could plan the following steps to answer the question:

  • Get the GeoJSON data of Maricopa county
  • Query the zipcodes in the county
  • Get all zipcode areas (GeoJSON) boundaries
  • Use spatialJoin tool to join the zipcode areas with the revenus data
  • Return the total revenus in each zipcode area

:::

FAQs

Package last updated on 14 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts