2026-01-26 19:43:24 +07:00
2026-01-26 19:40:38 +07:00
2026-01-26 19:40:38 +07:00
2026-01-22 13:13:00 +07:00
2026-01-22 13:23:06 +07:00
2026-01-26 20:02:29 +07:00
2026-01-26 20:02:29 +07:00
2026-01-26 19:20:54 +07:00
2026-01-22 13:13:00 +07:00
2026-01-26 19:20:54 +07:00

@remotestorage/module-places

npm version

This module allows you to manage saved places (Points of Interest) using the remoteStorage protocol.

It leverages Geohashes to organize data, enabling efficient retrieval of places within specific geographic areas. This structure is particularly optimized for map applications that need to load data only for the visible viewport.

For a demo application, as well as source code using this module, check out Marco.

Installation

pnpm add @remotestorage/module-places

Usage

import RemoteStorage from 'remotestoragejs';
import PlacesModule from '@remotestorage/module-places';

const remoteStorage = new RemoteStorage({
  modules: [PlacesModule],
});

// Access the module
const places = remoteStorage.places;

// Store a place
await places.store({
  title: 'My Favorite Coffee Shop',
  lat: 52.520008,
  lon: 13.404954,
});

// List all places
const allPlaces = await places.getPlaces();
console.log(allPlaces);

// List places for specific geohash prefixes (e.g. for a map view)
const areaPlaces = await places.getPlaces(['u33d', 'u33e']);
console.log(areaPlaces);

API Reference

Interfaces

Type Aliases

Description
Access and manage place bookmarks in a user's remote storage
Readme 105 KiB
Languages
TypeScript 100%