Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@amedia/atlas-js

Package Overview
Dependencies
Maintainers
112
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amedia/atlas-js

Lightweight client for Atlas geographic data services

latest
npmnpm
Version
0.1.1
Version published
Maintainers
112
Created
Source

@amedia/atlas-js

Lightweight client for Atlas geographic data services. Works in browsers, edge runtimes, and Node.js.

Install

npm install @amedia/atlas-js

Usage

import { AtlasClient } from '@amedia/atlas-js';

const atlas = new AtlasClient({
  baseUrl: 'https://services.api.no/api/atlas-ng/v1'
});

// Entity lookup
const { entities } = await atlas.get('municipalities', { q: '0301' });

// Graph query — resolve references in-place
const resolved = await atlas.graph('municipalities', '0301',
  'code,name,sitekeys:publication(name,domain)'
);

// Embed + auto-expand — best for lists (server deduplicates)
const expanded = await atlas.getExpanded('municipalities', {
  embed: '(sitekeys:publication(name,domain))'
});

// Point-in-polygon
const result = await atlas.pip(59.9127, 10.7461);

// FeatureCollection
const fc = await atlas.featureCollection('municipalities', {
  code: '0301',
  size: 'small'
});

API

new AtlasClient(options)

  • baseUrl — Atlas API base URL
  • version — Data version (default: 'latest')

.get(endpoint, params)AtlasResponse

.getExpanded(endpoint, params)T[] (embed + auto-expand)

.graph(endpoint, code, graphQuery)T[] (in-place resolution)

.featureCollection(type, params) → GeoJSON

.query(request) → QueryService response

.pip(lat, lon) → QueryService response (shorthand)

expandEmbed(response)T[]

Standalone function to expand _embedded references inline.

FAQs

Package last updated on 22 May 2026

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