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

@mapbox/carmen-private

Package Overview
Dependencies
Maintainers
0
Versions
617
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@mapbox/carmen-private

Mapnik vector-tile-based geocoder with support for swappable data sources.

latest
Source
npmnpm
Version
35.2.5
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Build Status

codecov

carmen

Mapnik vector tile-based geocoder with support for swappable data sources. This is an implementation of some of the concepts of Error-Correcting Geocoding by Dennis Luxen.

Depends

  • Node v22.x.x

Install

npm install

Carmen no longer ships with any default or sample data. Sample data will be provided in a future release.

Publish

Carmen is consumed by api-geocoder as a a node_modules package dependency. While developing and testing, you can publish a development release of Carmen.

To do this, first update the version field of the package.json file, using the following convention:

"version": "34.3.<next patch version>.<branch/feature name>"
mbx npm publish --tag dev

Once the feature has been E2E tested through api-geocoder and is ready to be merged into production, update the package.json version to its offical semver number (34.3.<next patch version>) and publish a production release:

mbx npm publish

Finally, update the package inside api-geocoder.

API

For a simplified example of using the carmen API, see the example folder in this repository.

For more detail about specific elements of the API (and how to use them directly), see the API Docs.

Command-line scripts

Carmen comes with command line utilities that also act as examples of API usage.

To query the default indexes:

./bin/carmen-index.js --query="new york"

To analyze an index:

./bin/carmen-analyze.js tiles/01-ne.country.mbtiles

Documentation

Carmen documentation has three parts:

General Documentation

Topic-based documentation is located in the docs directory, organized by topic. These documents are meant to cover high-level design or architectural concepts rather than the code itself. It also includes a glossary of frequently-used vocabulary.

Example Project

The example project is located in the example directory. It is a step-by-step, annotated tutorial for basic usage of carmen.

API Documentation

API documentation is written as JSDoc comments in the source code. It is also available as a markdown-formatted document: docs/api.md. This document is generated using documentationjs, and should be updated after any JSDoc comment changes:

yarn build-docs

API Documentation Style Guide

  • Classes, methods, events, and anything else must be documented with JSDoc comments.
  • Text within JSDoc comments may use markdown formatting. Code identifiers must be surrounded by `backticks`.
  • Documentation must be written in grammatically correct sentences ending with periods.
  • Documentation descriptions must contain more information than what is obvious from the identifier and JSDoc metadata.
  • Class descriptions should describe what the class is, or what its instances are. They do not document the constructor, but the class. They should begin with either a complete sentence or a phrase that would complete a sentence beginning with "A T is..." or "The T class is..." Examples: "Lists are ordered indexed dense collections." "A class used for asynchronous computations."
  • Function descriptions should begin with a third person singular present tense verb, as if completing a sentence beginning with "This function..." If the primary purpose of the function is to return a value, the description should begin with "Returns..." Examples: "Returns the layer with the specified id." "Sets the map's center point."
  • @param, @property, and @returns descriptions should be capitalized and end with a period. They should begin as if completing a sentence beginning with "This is..." or "This..."
  • Functions that do not return a value (return undefined), should not have a @returns annotation.
  • Member descriptions should document what a member represents or gets and sets. They should also indicate whether the member is read-only.
  • Event descriptions should begin with "Fired when..." and so should describe when the event fires. Event entries should clearly document any data passed to the handler, with a link to MDN documentation of native Event objects when applicable.

Versioning

Carmen uses conventional semantic versioning (major, minor, patch). You may use the following guidelines when updating the package version:

  • Major: Breaking changes or major structural/organizational changes to the codebase
  • Minor: New features or notable (but non-breaking) changes to existing functionality
  • Patch: Bug fixes or incremental improvements to existing functionality

FAQs

Package last updated on 30 Jul 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