Readme

Random Maps API

This val returns one or more random rows from a SQLite database as a JSON array. Each item represents a digitised map from a collection and contains the following properties:

{ // SQLite identifier "id": 70607, // Slug for the organisation "organizationId": "lmec", // Title of the map "title": "A topographical map of the northn. part of New York Island, exhibiting the plan of Fort Washington, now Fort Knyphausen, with the rebels lines to the southward, which were forced by the troops under the command of the Rt. Honble. Earl Percy, on the 16th Novr. 1776, and survey'd immediately after by order of his Lordship", // IIIF Presentation Manifest URL "manifestId": "https://collections.leventhalmap.org/search/commonwealth:9s161881v/manifest", // IIIF Image URL (first image in the manifest) "imageId": "https://iiif.digitalcommonwealth.org/iiif/2/commonwealth:9s1618824" }

The val returns a single map by default. You can change this with the following parameters:

  • count=100 Request a specific number of maps (max 1000)
  • org=lmec Request maps from a specific institution

For example:

https://sammeltassen-allmaps.web.val.run/?count=100&org=lmec

The val is used to offer maps to new users of Allmaps Editor. The scrapers used to gather the source data can be found here.

Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
sammeltassen-allmaps.web.val.run
Updated: December 15, 2024