Skip to content

Instantly share code, notes, and snippets.

@eliotjordan
eliotjordan / degrees2meters.js
Created April 12, 2022 01:38 — forked from onderaltintas/degrees2meters.js
javascript coordinate conversions between 900913(3857) - 4326(lat lon)
var degrees2meters = function(lon,lat) {
var x = lon * 20037508.34 / 180;
var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180);
y = y * 20037508.34 / 180;
return [x, y]
}
//test
lon= -77.035974
lat = 38.898717
@eliotjordan
eliotjordan / info.json
Created August 24, 2022 15:53
TileJSON.io - India and Pakistan 1:250,000
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / info.json
Created August 26, 2022 18:46
TileJSON.io - Greece Raster
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
{
"@context": [
"http://www.w3.org/ns/anno.jsonld",
"http://iiif.io/api/presentation/3/context.json"
],
"type": "Manifest",
"id": "https://figgy.princeton.edu/concern/scanned_resources/480ef315-411f-4176-832b-956c3fa005a0/manifest",
"label": {
"eng": [
"[Concert, 2015, January 09-10] [sound recording]"
@eliotjordan
eliotjordan / gist:e2946fd93fc45eb90626eed9ab44bd21
Last active October 13, 2025 20:57
annoation-example.json
{
"type": "AnnotationPage",
"@context": "http://www.w3.org/ns/anno.jsonld",
"items": [
{
"id": "https://annotations.allmaps.org/maps/47499d84a5b2c6b2",
"type": "Annotation",
"@context": [
"http://iiif.io/api/extension/georef/1/context.json",
"http://iiif.io/api/presentation/3/context.json"
@eliotjordan
eliotjordan / info.json
Created December 2, 2025 18:58
TileJSON.io - Aerial photography of New Orleans, May 2006 [map]
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / info.json
Created December 2, 2025 18:59
TileJSON.io - Aerial photography of New Orleans, May 2006 [map]Aerial photography of New Orleans, May 2006 [map]
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / gemini-results.md
Last active December 10, 2025 19:38
Results from Gemini map data extraction

Using Eric Larson's prompt with a IIIF link inserted, this is the result.

Prompt:
Digitized Historical Map OCR + Placenames + Bounding Box + Description
Yourtask is to analyze this digitized historical map image (https://iiif-cloud.princeton.edu/iiif/2/fc%2F46%2F1c%2Ffc461ce39d154c73955e2bf19c487ded%2Fintermediate_file/full/8256,/0/default.jpg)
and produce a high-accuracy extraction of printed textual conten...
{
"type": "FeatureCollection",
"name": "Sanborn_Map_Princeton_NJ_1927_Sheet_7_Extraction",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [