{
  "id": "task_libraries:geospatial/javascript",
  "path": "/exapedia/javascript-geospatial-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript geospatial libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript geospatial libraries measure, transform, and analyze geographic coordinates and shapes. A coordinate system defines how each longitude and latitude maps to a position on the Earth or on a flat map. These libraries calculate the distances, delivery zones, map projections, and boundary checks in mapping and location apps."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript geospatial libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#dthree-geo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#topojson-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#proj-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cheap-ruler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#turf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hthree-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jsts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#geolib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F249"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#dthree-geo",
          "label": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F130"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Spherical distance",
            "GeoJSON geometry input"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#dthree-geo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#topojson-client",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#proj-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cheap-ruler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#turf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hthree-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jsts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#geolib",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F249"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "dthree-geo",
          "name": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/d3/d3-geo"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/d3-geo"
            },
            {
              "label": "Docs",
              "href": "https://d3js.org/d3-geo/math"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://d3js.org/d3-geo/math",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/observablehq/plot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function projectionAspectRatio(projection) {\n  if (typeof projection?.stream === \"function\") return defaultAspectRatio;\n  if (isObject(projection)) {\n    let domain, options;\n    ({domain, type: projection, ...options} = projection);\n    if (domain != null && projection != null) {\n      const type = typeof projection === \"string\" ? namedProjection(projection).type : projection;\n      const [[x0, y0], [x1, y1]] = geoPath(type({...options, width: 100, height: 100})).bounds(domain);\n      const r = (y1 - y0) / (x1 - x0);\n      return r && isFinite(r) ? (r < 0.2 ? 0.2 : r > 5 ? 5 : r) : defaultAspectRatio;\n    }\n  }\n  if (projection == null) return;\n  if (typeof projection !== \"function\") {\n    const {aspectRatio} = namedProjection(projection);\n    if (aspectRatio) return aspectRatio;\n  }\n  return defaultAspectRatio;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/observablehq/plot/blob/2245188895e95ef2043f0ad12c2f900d6e48ef1a/src/projection.js#L290",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=d3-geo%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { geoDistance } from \"d3-geo\";\nconsole.log(geoDistance([0, 0], [1, 0]));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://d3js.org/d3-geo/math",
                  "label": [
                    {
                      "t": "text",
                      "text": "math docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "topojson-client",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/topojson/topojson-client"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/topojson-client"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/topojson/topojson-client/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/topojson/topojson-client/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vega/vega",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export default function topojson(data, format) {\n  let method, object, property, filter;\n  data = json(data, format);\n\n  if (format && format.feature) {\n    method = feature;\n    property = format.feature;\n  } else if (format && format.mesh) {\n    method = mesh;\n    property = format.mesh;\n    filter = filters[format.filter];\n  } else {\n    error('Missing TopoJSON feature or mesh parameter.');\n  }\n\n  object = (object = data.objects[property])\n    ? method(data, object, filter)\n    : error('Invalid TopoJSON object: ' + property);\n\n  return object && object.features || [object];\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vega/vega/blob/bd7261aa7b782aa6906e121c3810691661f08f41/packages/vega-loader/src/formats/topojson.js#L10",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=topojson-client%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { feature } from \"topojson-client\";\nconst topology = { type: \"Topology\", objects: { place: { type: \"Point\", coordinates: [0, 0] } }, arcs: [] };\nconsole.log(feature(topology, topology.objects.place));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/topojson/topojson-client/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "proj-js",
          "name": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/proj4js/proj4js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/proj4"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/proj4js/proj4js/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F10"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/proj4js/proj4js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openlayers/openlayers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function fromProjectionDefinition(def) {\n  const proj4 = registered;\n  if (!proj4) {\n    throw new Error('Proj4 must be registered first with register(proj4)');\n  }\n  // Fallback code is the whole def...\n  let code = JSON.stringify(def);\n  proj4.defs(code, def);\n  const proj4Def = proj4.defs(code);\n  if (proj4Def.title) {\n    // ...but use authority:code if available\n    proj4.defs(code, /** @type {?} */ (null));\n    code = proj4Def.title;\n    const projection = getCachedProjection(code);\n    if (projection) {\n      return projection;\n    }\n    proj4.defs(code, def);\n  }\n  register(proj4);\n  const projection = getCachedProjection(code);\n  if (!projection) {\n    throw new Error('Projection not found after registration');\n  }\n  return projection;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openlayers/openlayers/blob/33bcbad9945b3779c5bd7bb44226e5505c088264/src/ol/proj/proj4.js#L179",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20proj4%20for%20geometry%20analysis%20coordinate%20transformation%20geofencing%20and%20geographic%20calculations&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import proj4 from \"proj4\";\nconsole.log(proj4(\"EPSG:4326\", \"EPSG:3857\", [0, 0]));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/proj4js/proj4js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cheap-ruler",
          "name": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mapbox/cheap-ruler"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/cheap-ruler"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/mapbox/cheap-ruler/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F188"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/mapbox/cheap-ruler/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cheeaun/busrouter-sg",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "(a, b) =>\n    ruler.lineDistance(a.geometry.coordinates) -\n    ruler.lineDistance(b.geometry.coordinates)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cheeaun/busrouter-sg/blob/e414a251b898453dac58b823ef1c66eb12592132/visualization/build-routes.mjs#L28-L30",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=cheap-ruler%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import CheapRuler from \"cheap-ruler\";\nconst ruler = new CheapRuler(50.5, \"meters\");\nconsole.log(ruler.distance([30.5, 50.5], [30.51, 50.51]));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/mapbox/cheap-ruler/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "turf",
          "name": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Turfjs/turf"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@turf/turf"
            },
            {
              "label": "Docs",
              "href": "https://turfjs.org/docs/api/distance"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://turfjs.org/docs/api/distance",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F199"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/visgl/deck.gl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F213"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function getLabelAtPoint<FeatureProperties>(\n  line: Feature<LineString, FeatureProperties>,\n  lineLength: number,\n  dAlong: number,\n  priority: number\n): Label<FeatureProperties> {\n  const offset = dAlong + 1 < lineLength ? 1 : -1;\n  const point = along(line, dAlong);\n  const nextPoint = along(line, dAlong + offset);\n  if (booleanEqual(point, nextPoint)) return null;\n\n  let angle = 90 - rhumbBearing(point, nextPoint);\n  if (Math.abs(angle) > 90) angle += 180;\n\n  return {\n    position: point.geometry.coordinates,\n    priority,\n    angle,\n    parent: line.properties\n  };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/visgl/deck.gl/blob/5d6257227a0aea0c92453cc798a683ab0d1f6ecb/examples/website/collision-filter/calculate-labels.ts#L72",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F212"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20%40turf/turf%20for%20geometry%20analysis%20coordinate%20transformation%20geofencing%20and%20geographic%20calculations&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F199"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { distance } from \"@turf/turf\";\nconsole.log(distance([0, 0], [1, 0], { units: \"kilometers\" }));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://turfjs.org/docs/api/distance",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "hthree-js",
          "name": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/uber/h3-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/h3-js"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/uber/h3-js/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/uber/h3-js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F215"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/visgl/deck.gl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F231"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function h3ToPolygon(hexId: H3IndexInput, coverage: number = 1): number[][] {\n  const vertices = cellToBoundary(hexId, true);\n\n  if (coverage !== 1) {\n    // scale and normalize vertices w.r.t to center\n    scalePolygon(hexId, vertices, coverage);\n  } else {\n    // normalize w.r.t to start vertex\n    normalizeLongitudes(vertices);\n  }\n\n  return vertices;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/visgl/deck.gl/blob/5d6257227a0aea0c92453cc798a683ab0d1f6ecb/modules/geo-layers/src/h3-layers/h3-utils.ts#L45",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F230"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=h3-js%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F215"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { latLngToCell } from \"h3-js\";\nconsole.log(latLngToCell(37.3615593, -122.0553238, 7));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/uber/h3-js/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jsts",
          "name": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bjornharrtell/jsts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jsts"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/bjornharrtell/jsts/2.12.1/src/org/locationtech/jts/io/GeoJSONReader.js"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F60"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/bjornharrtell/jsts/2.12.1/src/org/locationtech/jts/io/GeoJSONReader.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F233"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/geops/openlayers-editor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F247"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "buffer(width) {\n  const parser = new OL3Parser();\n  parser.inject(\n    Point,\n    LineString,\n    LinearRing,\n    Polygon,\n    MultiPoint,\n    MultiLineString,\n    MultiPolygon,\n  );\n\n  const features = this.selectInteraction.getFeatures().getArray();\n  for (let i = 0; i < features.length; i += 1) {\n    const jstsGeom = parser.read(features[i].getGeometry());\n    const bo = new BufferOp(jstsGeom);\n    const buffered = bo.getResultGeometry(width);\n    features[i].setGeometry(parser.write(buffered));\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/geops/openlayers-editor/blob/ce95cf3c266e6eb9d585b8455e65500051b07c17/src/control/buffer.js#L71",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F246"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20jsts%20for%20geometry%20analysis%20coordinate%20transformation%20geofencing%20and%20geographic%20calculations&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F233"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import GeoJSONReader from \"jsts/org/locationtech/jts/io/GeoJSONReader.js\";\nconst reader = new GeoJSONReader();\nconsole.log(reader.read({ type: \"Point\", coordinates: [0, 0] }));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/bjornharrtell/jsts/2.12.1/src/org/locationtech/jts/io/GeoJSONReader.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "index_modules.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "geolib",
          "name": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/manuelbieh/geolib"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/geolib"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/manuelbieh/geolib/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F85"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/manuelbieh/geolib/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F249"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/zachowj/node-red-contrib-home-assistant-websocket",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F263"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function inZone(location: locationData, zone: locationData): boolean {\n    const { radius = 0, ...zoneLatLog } = zone;\n    const inZone = isPointWithinRadius(location, zoneLatLog, radius);\n\n    return inZone;\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/zachowj/node-red-contrib-home-assistant-websocket/blob/d678f8bb73447ec18808dac6c90c356496033897/src/nodes/zone/helpers.ts#L6",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20applications%20using%20geolib%20for%20geometry%20analysis%20coordinate%20transformation%20geofencing%20and%20geographic%20calculations&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F249"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { getDistance } from \"geolib\";\nconsole.log(getDistance({ latitude: 51.5103, longitude: 7.49347 }, { latitude: 51.525, longitude: 7.4575 }));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/manuelbieh/geolib/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F254"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript geospatial library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#turf",
          "label": [
            {
              "t": "text",
              "text": "Turf"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits analysis of GeoJSON features, such as distances and point-in-polygon tests. "
        },
        {
          "t": "link",
          "href": "#proj-js",
          "label": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "t": "text",
          "text": " converts coordinates between coordinate systems, and "
        },
        {
          "t": "link",
          "href": "#dthree-geo",
          "label": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ]
        },
        {
          "t": "text",
          "text": " projects geographic shapes onto a flat map."
        }
      ]
    },
    {
      "q": "What is GeoJSON?",
      "a": [
        {
          "t": "text",
          "text": "GeoJSON is a JSON format for geographic features such as points, lines, and polygons, each with its coordinates and properties. "
        },
        {
          "t": "link",
          "href": "#turf",
          "label": [
            {
              "t": "text",
              "text": "Turf"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#jsts",
          "label": [
            {
              "t": "text",
              "text": "JSTS"
            }
          ]
        },
        {
          "t": "text",
          "text": " read GeoJSON directly."
        }
      ]
    },
    {
      "q": "What is Geolib?",
      "a": [
        {
          "t": "link",
          "href": "#geolib",
          "label": [
            {
              "t": "text",
              "text": "Geolib"
            }
          ]
        },
        {
          "t": "text",
          "text": " calculates distances, bearings, and boundary checks from plain coordinate pairs. It works in two dimensions and ignores altitude."
        }
      ]
    },
    {
      "q": "What is h3-js?",
      "a": [
        {
          "t": "link",
          "href": "#hthree-js",
          "label": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the pure JavaScript version of Uber's hexagon-based geographic grid system. Its latLngToCell function turns a latitude and longitude into a hexagon index at a chosen resolution."
        }
      ]
    },
    {
      "q": "What does Proj4js do?",
      "a": [
        {
          "t": "link",
          "href": "#proj-js",
          "label": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "t": "text",
          "text": " transforms point coordinates from one coordinate system to another, including datum transformations. It expects longitude before latitude unless enforceAxis is set."
        }
      ]
    },
    {
      "q": "What is TopoJSON?",
      "a": [
        {
          "t": "text",
          "text": "TopoJSON stores geographic shapes with shared borders as arcs. "
        },
        {
          "t": "link",
          "href": "#topojson-client",
          "label": [
            {
              "t": "text",
              "text": "TopoJSON Client"
            }
          ]
        },
        {
          "t": "text",
          "text": " converts TopoJSON back to GeoJSON for rendering with tools such as "
        },
        {
          "t": "fact",
          "fact": "F129"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, proj4",
      "display": "Proj4js",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, proj4",
      "display": "8.8M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, proj4",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, proj4",
      "display": "2.23.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, proj4",
      "display": "v2.23.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, proj4",
      "display": "2.2K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Coordinate reprojection, proj4",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Browser support, proj4",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, proj4",
      "display": "npm install proj4",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, proj4",
      "display": "Converts point coordinates between coordinate systems, including datum transformations.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, proj4",
      "display": "Converts between coordinate systems",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, proj4",
      "display": "Supply source and target definitions to transform point coordinates.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, proj4",
      "display": "Reuses forward and inverse converters",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, proj4",
      "display": "Create a converter once and use both transformation directions.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, proj4",
      "display": "Grid adjustments need loaded files",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, proj4",
      "display": "Load the required grid before using its datum transformation.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, proj4",
      "display": "Defaults to longitude before latitude",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, proj4",
      "display": "Set enforceAxis when coordinates follow the definition’s different axis order.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, proj4",
      "display": "var firstProjection = 'PROJCS[\"NAD83 / Massachusetts Mainland\",GEOGCS[\"NAD83\",DATUM[\"North_American_Datum_1983\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6269\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4269\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Lambert_Conformal_Conic_2SP\"],PARAMETER[\"standard_parallel_1\",42.68333333333333],PARAMETER[\"standard_parallel_2\",41.71666666666667],PARAMETER[\"latitude_of_origin\",41],PARAMETER[\"central_meridian\",-71.5],PARAMETER[\"false_easting\",200000],PARAMETER[\"false_northing\",750000],AUTHORITY[\"EPSG\",\"26986\"],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]';\nvar secondProjection = \"+proj=gnom +lat_0=90 +lon_0=0 +x_0=6300000 +y_0=6300000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs\";\n//I'm not going to redefine those two in latter examples.\nproj4(firstProjection,secondProjection,[-122.305887, 58.9465872]);\n// [-2690575.447893817, 36622916.8071244564]\n\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart source reference, proj4",
      "display": "proj4()",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, proj4",
      "display": "export function fromProjectionDefinition(def) {\n  const proj4 = registered;\n  if (!proj4) {\n    throw new Error('Proj4 must be registered first with register(proj4)');\n  }\n  // Fallback code is the whole def...\n  let code = JSON.stringify(def);\n  proj4.defs(code, def);\n  const proj4Def = proj4.defs(code);\n  if (proj4Def.title) {\n    // ...but use authority:code if available\n    proj4.defs(code, /** @type {?} */ (null));\n    code = proj4Def.title;\n    const projection = getCachedProjection(code);\n    if (projection) {\n      return projection;\n    }\n    proj4.defs(code, def);\n  }\n  register(proj4);\n  const projection = getCachedProjection(code);\n  if (!projection) {\n    throw new Error('Projection not found after registration');\n  }\n  return projection;\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, proj4",
      "display": "proj4.js · fromProjectionDefinition()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, proj4",
      "display": "openlayers/openlayers",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, openlayers/openlayers",
      "display": "12.7K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, openlayers/openlayers",
      "display": "Nov 2026",
      "asOf": "2026-11-14"
    },
    "F26": {
      "label": "Library name, @turf/turf",
      "display": "Turf",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, @turf/turf",
      "display": "8.7M",
      "asOf": "2026-11-15"
    },
    "F28": {
      "label": "License, @turf/turf",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, @turf/turf",
      "display": "7.4.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Undated package release, @turf/turf",
      "display": "v7.4.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Repository stars, @turf/turf",
      "display": "10.5K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Coordinate reprojection, @turf/turf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Point in polygon, @turf/turf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Distance calculation, @turf/turf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Browser support, @turf/turf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, @turf/turf",
      "display": "npm install @turf/turf",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, @turf/turf",
      "display": "Analyzes GeoJSON features with geographic measurements, geometry operations, and spatial tests.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, @turf/turf",
      "display": "Works directly with GeoJSON",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, @turf/turf",
      "display": "Create features and analyze their geometry without a separate geometry model.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, @turf/turf",
      "display": "Tests polygons with holes",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, @turf/turf",
      "display": "booleanPointInPolygon handles concave shapes and polygon holes.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, @turf/turf",
      "display": "Expects longitude before latitude",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, @turf/turf",
      "display": "Use WGS84 coordinates in GeoJSON order before running geographic analysis.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, @turf/turf",
      "display": "Shrinking can remove features",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, @turf/turf",
      "display": "A large negative buffer can return fewer geometries or an empty collection.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, @turf/turf",
      "display": "var point = turf.point([-90.548630, 14.616599]);\nvar buffered = turf.buffer(point, 500, {units: 'miles'});\n\n//addToMap\nvar addToMap = [point, buffered]\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, @turf/turf",
      "display": "function getLabelAtPoint<FeatureProperties>(\n  line: Feature<LineString, FeatureProperties>,\n  lineLength: number,\n  dAlong: number,\n  priority: number\n): Label<FeatureProperties> {\n  const offset = dAlong + 1 < lineLength ? 1 : -1;\n  const point = along(line, dAlong);\n  const nextPoint = along(line, dAlong + offset);\n  if (booleanEqual(point, nextPoint)) return null;\n\n  let angle = 90 - rhumbBearing(point, nextPoint);\n  if (Math.abs(angle) > 90) angle += 180;\n\n  return {\n    position: point.geometry.coordinates,\n    priority,\n    angle,\n    parent: line.properties\n  };\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, @turf/turf",
      "display": "calculate-labels.ts · getLabelAtPoint()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, @turf/turf",
      "display": "visgl/deck.gl",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, visgl/deck.gl",
      "display": "14.8K",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, visgl/deck.gl",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Library name, jsts",
      "display": "JSTS",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, jsts",
      "display": "7.4M",
      "asOf": "2026-11-15"
    },
    "F54": {
      "label": "License, jsts",
      "display": "(EDL-1.0 OR EPL-1.0)",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, jsts",
      "display": "2.12.1",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Undated package release, jsts",
      "display": "v2.12.1",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Repository stars, jsts",
      "display": "1.6K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Browser support, jsts",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Install, jsts",
      "display": "npm install jsts",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "What it does, jsts",
      "display": "Processes geometries and spatial relationships using the JTS geometry model.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, jsts",
      "display": "Connects to OpenLayers geometries",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, jsts",
      "display": "Read and write OpenLayers geometries through its direct parser.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, jsts",
      "display": "Reads WKT and GeoJSON",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, jsts",
      "display": "Use either geometry format when exchanging shapes with other tools.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, jsts",
      "display": "Precision errors can stop operations",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, jsts",
      "display": "Validate inputs and reduce coordinate precision when geometry calculations fail.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, jsts",
      "display": "Requires operation classes for methods",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, jsts",
      "display": "Use the operation class instead of calling geometry.buffer in ES modules.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Quickstart, jsts",
      "display": "import WKTReader from 'https://unpkg.com/jsts@2.3.0/org/locationtech/jts/io/WKTReader.js'\nimport OL3Parser from 'https://unpkg.com/jsts@2.3.0/org/locationtech/jts/io/OL3Parser.js'\n\nimport BufferOp from 'https://unpkg.com/jsts@2.3.0/org/locationtech/jts/operation/buffer/BufferOp.js'\nimport OverlayOp from 'https://unpkg.com/jsts@2.3.0/org/locationtech/jts/operation/overlay/OverlayOp.js'\nimport UnionOp from 'https://unpkg.com/jsts@2.3.0/org/locationtech/jts/operation/union/UnionOp.js'\n\nconst reader = new WKTReader()\nconst parser = new OL3Parser()\n\nfunction visualize (geometries, override, i) {\n  const colors = [[255, 0, 0, 0.5], [0, 0, 255, 0.5], [0, 150, 0, 0.5]]\n\n  function createStyle (color) {\n    return new ol.style.Style({\n      image: new ol.style.Circle({\n        fill: new ol.style.Fill({\n          color: color\n        }),\n        stroke: new ol.style.Stroke({\n          color: 'black',\n          width: 1\n        }),\n        radius: 3\n      }),\n      fill: new ol.style.Fill({\n        color: color\n      }),\n      stroke: new ol.style.Stroke({\n        color: 'black',\n        width: 1\n      })\n    })\n  }\n\n  const features = geometries.map((g, i) => {\n    const f = new ol.Feature({\n      geometry: parser.write(g)\n    })\n    f.setStyle(createStyle(override ? colors[2] : colors[i]))\n    return f\n  })\n\n  const source = new ol.source.Vector({\n    features: features\n  })\n  const layer = new ol.layer.Vector({\n    source: source\n    // style: createStyle(color)\n  })\n\n  //var maps = document.getElementById('maps')\n  //var div = document.createElement('span')\n  //div.classList.add('map')\n  //maps.appendChild(div)\n\n  new ol.Map({\n    layers: [ layer ],\n    target: 'map' + i,\n    controls: [],\n    view: new ol.View({\n      center: [0, 0],\n      resolution: 1\n    })\n  })\n}\n\nconst p1 = reader.read('POINT (-20 0)')\nconst p2 = reader.read('POINT (20 0)')\nconst a = [p1, p2]\nconst b = a.map(g => BufferOp.bufferOp(g, 40))\nconst c = [OverlayOp.intersection(b[0], b[1])]\nconst d = [OverlayOp.difference(b[0], b[1])]\nconst e = [UnionOp.union(b[0], b[1])]\nconst f = [OverlayOp.symDifference(b[0], b[1])]\nconst geometries = [a, b, c, d, e, f]\nconst override = [false, false, true, true, true, true]\ngeometries.forEach((e, i) => visualize(e, override[i], i))\n\n",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project function, jsts",
      "display": "buffer(width) {\n    const parser = new OL3Parser();\n    parser.inject(\n      Point,\n      LineString,\n      LinearRing,\n      Polygon,\n      MultiPoint,\n      MultiLineString,\n      MultiPolygon,\n    );\n\n    const features = this.selectInteraction.getFeatures().getArray();\n    for (let i = 0; i < features.length; i += 1) {\n      const jstsGeom = parser.read(features[i].getGeometry());\n      const bo = new BufferOp(jstsGeom);\n      const buffered = bo.getResultGeometry(width);\n      features[i].setGeometry(parser.write(buffered));\n    }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function reference, jsts",
      "display": "buffer.js · buffer()",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project repository, jsts",
      "display": "geops/openlayers-editor",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project stars, geops/openlayers-editor",
      "display": "230",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project push date, geops/openlayers-editor",
      "display": "Aug 2025",
      "asOf": "2025-08-08"
    },
    "F75": {
      "label": "Library name, geolib",
      "display": "Geolib",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Monthly downloads, geolib",
      "display": "3.0M",
      "asOf": "2026-11-15"
    },
    "F77": {
      "label": "License, geolib",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Package release, geolib",
      "display": "4.0.2",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Undated package release, geolib",
      "display": "v4.0.2",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Repository stars, geolib",
      "display": "4.3K",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Point in polygon, geolib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Distance calculation, geolib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Browser support, geolib",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Install, geolib",
      "display": "npm install geolib",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "What it does, geolib",
      "display": "Calculates geographic distances, bearings, and location boundaries from coordinate pairs.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths lead, geolib",
      "display": "Checks polygon boundaries directly",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths, geolib",
      "display": "Use isPointInPolygon to check whether a location lies inside an outline.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, geolib",
      "display": "Offers ellipsoid-based distance calculations",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, geolib",
      "display": "Use getPreciseDistance for Vincenty distance calculations on an ellipsoid.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations lead, geolib",
      "display": "Ignores altitude and elevation",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations, geolib",
      "display": "Distance and boundary calculations operate in two dimensions.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, geolib",
      "display": "Polygon vertices need outline order",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, geolib",
      "display": "Supply vertices clockwise or counterclockwise around the polygon boundary.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Quickstart, geolib",
      "display": "<script src=\"https://cdn.jsdelivr.net/npm/geolib@4\"></script>\n<script>\n    geolib.getDistance(\n        { latitude: 51.5103, longitude: 7.49347 },\n        { latitude: 51.525, longitude: 7.4575 }\n    );\n</script>\n",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project function, geolib",
      "display": "export function inZone(location: locationData, zone: locationData): boolean {\n    const { radius = 0, ...zoneLatLog } = zone;\n    const inZone = isPointWithinRadius(location, zoneLatLog, radius);\n\n    return inZone;\n}\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project function reference, geolib",
      "display": "helpers.ts · inZone()",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project repository, geolib",
      "display": "zachowj/node-red-contrib-home-assistant-websocket",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project stars, zachowj/node-red-contrib-home-assistant-websocket",
      "display": "601",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project push date, zachowj/node-red-contrib-home-assistant-websocket",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F100": {
      "label": "Developer need",
      "display": "Analyzing GeoJSON features",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose @turf/turf",
      "display": "direct feature-based geometry analysis",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "analyzing GeoJSON features",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "When to consider proj4",
      "display": "source coordinates need conversion between coordinate systems",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Editing OpenLayers geometries",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose jsts",
      "display": "a direct geometry reader and writer",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "editing OpenLayers geometries",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Converting coordinate systems",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose proj4",
      "display": "source-to-target coordinate transformations",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "converting coordinate systems",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider @turf/turf",
      "display": "transformed GeoJSON features need spatial analysis",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Checking a location boundary",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose geolib",
      "display": "polygon boundary tests",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "checking a location boundary",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "When to consider @turf/turf",
      "display": "polygon holes matter to the boundary test",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Page introduction",
      "display": "JavaScript geospatial libraries let developers analyze geometry and geographic coordinates.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which library should analyze GeoJSON features?",
      "display": "Turf works directly with GeoJSON features and expects WGS84 coordinates.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which library converts coordinates between systems?",
      "display": "Proj4js transforms point coordinates between coordinate systems, including datum changes.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can Turf use latitude before longitude?",
      "display": "Turf expects longitude before latitude in its GeoJSON coordinates.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does Turf handle holes in polygons?",
      "display": "booleanPointInPolygon handles polygon holes and convex or concave polygons.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: What happens when a Turf buffer shrinks too far?",
      "display": "An excessive negative buffer can create invalid geometries; collections return only valid members.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Can JSTS read OpenLayers geometries?",
      "display": "JSTS provides a direct reader and writer for OpenLayers3+ geometries.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Why can JSTS throw a TopologyException?",
      "display": "Precision issues can stop a calculation; reduce input precision and ensure valid input geometries.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Why does geometry.buffer fail with JSTS modules?",
      "display": "The ES-module API uses operation classes; shortcut geometry methods belong to the monkey-patched bundle.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can a Proj4js converter run in both directions?",
      "display": "Calling proj4 without coordinates returns a converter with forward and inverse methods.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: What order does Proj4js use for coordinates?",
      "display": "Projected coordinates default to x,y; geographic coordinates default to longitude,latitude. Set enforceAxis to honor another defined axis order.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does Geolib include elevation in distances?",
      "display": "Geolib calculations are two-dimensional and do not support altitude or elevation.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: What is the difference between Geolib distance methods?",
      "display": "getDistance uses the Haversine formula.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: What is the difference between Geolib distance methods?",
      "display": "getPreciseDistance uses the Vincenty inverse formula for ellipsoids.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Library name, d3-geo",
      "display": "d3-geo",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Monthly downloads, d3-geo",
      "display": "205.4M",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "License, d3-geo",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release, d3-geo",
      "display": "3.1.2",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Package release date, d3-geo",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Install, d3-geo",
      "display": "npm install d3-geo@3.1.2",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Quickstart, d3-geo",
      "display": "import { geoDistance } from \"d3-geo\";\nconsole.log(geoDistance([0, 0], [1, 0]));\n",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Official description, d3-geo",
      "display": "Calculates shapes and measurements for spherical coordinates.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Quickstart source file, d3-geo",
      "display": "docs/d3-geo/math.md",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Repository stars, d3-geo",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Spherical distance, d3-geo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "GeoJSON geometry input, d3-geo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Geometry and calculation model, d3-geo",
      "display": "Spherical geometry calculations and cartographic projection/path operations for GeoJSON; great-arc distance is angular radians.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Coordinates and host setup, d3-geo",
      "display": "JavaScript ESM host or bundler. Points are longitude/latitude degrees; result is an angular distance in radians, not meters. No DOM or rendering surface is required.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, d3-geo",
      "display": "export function projectionAspectRatio(projection) {\n  if (typeof projection?.stream === \"function\") return defaultAspectRatio;\n  if (isObject(projection)) {\n    let domain, options;\n    ({domain, type: projection, ...options} = projection);\n    if (domain != null && projection != null) {\n      const type = typeof projection === \"string\" ? namedProjection(projection).type : projection;\n      const [[x0, y0], [x1, y1]] = geoPath(type({...options, width: 100, height: 100})).bounds(domain);\n      const r = (y1 - y0) / (x1 - x0);\n      return r && isFinite(r) ? (r < 0.2 ? 0.2 : r > 5 ? 5 : r) : defaultAspectRatio;\n    }\n  }\n  if (projection == null) return;\n  if (typeof projection !== \"function\") {\n    const {aspectRatio} = namedProjection(projection);\n    if (aspectRatio) return aspectRatio;\n  }\n  return defaultAspectRatio;\n}\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, d3-geo",
      "display": "src/projection.js",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, d3-geo",
      "display": "observablehq/plot",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, d3-geo",
      "display": "5.4K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, topojson-client",
      "display": "TopoJSON Client",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, topojson-client",
      "display": "44.8M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, topojson-client",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, topojson-client",
      "display": "3.1.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, topojson-client",
      "display": "Nov 2019",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, topojson-client",
      "display": "npm install topojson-client@3.1.0",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, topojson-client",
      "display": "import { feature } from \"topojson-client\";\nconst topology = { type: \"Topology\", objects: { place: { type: \"Point\", coordinates: [0, 0] } }, arcs: [] };\nconsole.log(feature(topology, topology.objects.place));\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Official description, topojson-client",
      "display": "Manipulates TopoJSON and converts it to GeoJSON.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Quickstart source file, topojson-client",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Repository stars, topojson-client",
      "display": "242",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Spherical distance, topojson-client",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "GeoJSON geometry input, topojson-client",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Geometry and calculation model, topojson-client",
      "display": "Decode and manipulate shared-arc TopoJSON, extracting GeoJSON features or boundary meshes; not a GeoJSON topology encoder.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Coordinates and host setup, topojson-client",
      "display": "Compatible JavaScript ESM/bundler host. Complete toy Topology supplied inline, including its named Point object and empty arcs. Converts TopoJSON to a GeoJSON Feature; this is not a GeoJSON-to-TopoJSON encoder.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project function, topojson-client",
      "display": "export default function topojson(data, format) {\n  let method, object, property, filter;\n  data = json(data, format);\n\n  if (format && format.feature) {\n    method = feature;\n    property = format.feature;\n  } else if (format && format.mesh) {\n    method = mesh;\n    property = format.mesh;\n    filter = filters[format.filter];\n  } else {\n    error('Missing TopoJSON feature or mesh parameter.');\n  }\n\n  object = (object = data.objects[property])\n    ? method(data, object, filter)\n    : error('Invalid TopoJSON object: ' + property);\n\n  return object && object.features || [object];\n}\n",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project source file, topojson-client",
      "display": "packages/vega-loader/src/formats/topojson.js",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project full_name, topojson-client",
      "display": "vega/vega",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project stargazers_count, topojson-client",
      "display": "12.1K",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Library name, proj4",
      "display": "Proj4js",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Monthly downloads, proj4",
      "display": "9.1M",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "License, proj4",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release, proj4",
      "display": "2.23.0",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release date, proj4",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Install, proj4",
      "display": "npm install proj4@2.23.0",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart, proj4",
      "display": "import proj4 from \"proj4\";\nconsole.log(proj4(\"EPSG:4326\", \"EPSG:3857\", [0, 0]));\n",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Repository stars, proj4",
      "display": "2.2K",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Spherical distance, proj4",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "GeoJSON geometry input, proj4",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Geometry and calculation model, proj4",
      "display": "Transform coordinate pairs between explicit CRS definitions, including PROJ/WKT/PROJJSON and registered EPSG names; not a geometry topology engine.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Coordinates and host setup, proj4",
      "display": "Compatible JavaScript ESM/CommonJS-interoperable host or browser bundler. Both CRS identifiers are included definitions. Input is longitude/latitude degrees; Web Mercator output uses projected units. No external EPSG lookup or grid resource is hidden.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project function, proj4",
      "display": "export function fromProjectionDefinition(def) {\n  const proj4 = registered;\n  if (!proj4) {\n    throw new Error('Proj4 must be registered first with register(proj4)');\n  }\n  // Fallback code is the whole def...\n  let code = JSON.stringify(def);\n  proj4.defs(code, def);\n  const proj4Def = proj4.defs(code);\n  if (proj4Def.title) {\n    // ...but use authority:code if available\n    proj4.defs(code, /** @type {?} */ (null));\n    code = proj4Def.title;\n    const projection = getCachedProjection(code);\n    if (projection) {\n      return projection;\n    }\n    proj4.defs(code, def);\n  }\n  register(proj4);\n  const projection = getCachedProjection(code);\n  if (!projection) {\n    throw new Error('Projection not found after registration');\n  }\n  return projection;\n}\n",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project source file, proj4",
      "display": "src/ol/proj/proj4.js",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project full_name, proj4",
      "display": "openlayers/openlayers",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project stargazers_count, proj4",
      "display": "12.7K",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Library name, cheap-ruler",
      "display": "cheap-ruler",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Monthly downloads, cheap-ruler",
      "display": "9.1M",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "License, cheap-ruler",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release, cheap-ruler",
      "display": "4.1.1",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Package release date, cheap-ruler",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Install, cheap-ruler",
      "display": "npm install cheap-ruler@4.1.1",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart, cheap-ruler",
      "display": "import CheapRuler from \"cheap-ruler\";\nconst ruler = new CheapRuler(50.5, \"meters\");\nconsole.log(ruler.distance([30.5, 50.5], [30.51, 50.51]));\n",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Official description, cheap-ruler",
      "display": "Approximates common geographic measurements.",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Quickstart source file, cheap-ruler",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Repository stars, cheap-ruler",
      "display": "434",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Spherical distance, cheap-ruler",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "GeoJSON geometry input, cheap-ruler",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Geometry and calculation model, cheap-ruler",
      "display": "Reusable latitude-local approximate distance, bearing, line, and bounding-box calculations with chosen units; not a global exact geodesic solver.",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Coordinates and host setup, cheap-ruler",
      "display": "Compatible JavaScript ESM host. Both points lie near the ruler latitude; input coordinates are longitude/latitude degrees and requested output is meters. This local flat approximation is not a global geodesic solver.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project function, cheap-ruler",
      "display": "(a, b) =>\n    ruler.lineDistance(a.geometry.coordinates) -\n    ruler.lineDistance(b.geometry.coordinates)\n",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Project source file, cheap-ruler",
      "display": "visualization/build-routes.mjs",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Project full_name, cheap-ruler",
      "display": "cheeaun/busrouter-sg",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project stargazers_count, cheap-ruler",
      "display": "381",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Library name, @turf/turf",
      "display": "Turf",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Monthly downloads, @turf/turf",
      "display": "9.0M",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "License, @turf/turf",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Package release, @turf/turf",
      "display": "7.4.0",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Package release date, @turf/turf",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Install, @turf/turf",
      "display": "npm install @turf/turf@7.4.0",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Quickstart, @turf/turf",
      "display": "import { distance } from \"@turf/turf\";\nconsole.log(distance([0, 0], [1, 0], { units: \"kilometers\" }));\n",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Repository stars, @turf/turf",
      "display": "10.6K",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Spherical distance, @turf/turf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "GeoJSON geometry input, @turf/turf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Geometry and calculation model, @turf/turf",
      "display": "GeoJSON-oriented geographic analysis with public modules for distances, interpolation, predicates, and rhumb bearings.",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Coordinates and host setup, @turf/turf",
      "display": "Compatible JavaScript ESM host or browser bundler. Inline points use longitude/latitude degrees; requested result is kilometers using the documented spherical calculation. No tile source or map renderer is involved.",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Project function, @turf/turf",
      "display": "function getLabelAtPoint<FeatureProperties>(\n  line: Feature<LineString, FeatureProperties>,\n  lineLength: number,\n  dAlong: number,\n  priority: number\n): Label<FeatureProperties> {\n  const offset = dAlong + 1 < lineLength ? 1 : -1;\n  const point = along(line, dAlong);\n  const nextPoint = along(line, dAlong + offset);\n  if (booleanEqual(point, nextPoint)) return null;\n\n  let angle = 90 - rhumbBearing(point, nextPoint);\n  if (Math.abs(angle) > 90) angle += 180;\n\n  return {\n    position: point.geometry.coordinates,\n    priority,\n    angle,\n    parent: line.properties\n  };\n}\n",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Project source file, @turf/turf",
      "display": "examples/website/collision-filter/calculate-labels.ts",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project full_name, @turf/turf",
      "display": "visgl/deck.gl",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Project stargazers_count, @turf/turf",
      "display": "14.8K",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Library name, h3-js",
      "display": "h3-js",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Monthly downloads, h3-js",
      "display": "8.0M",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "License, h3-js",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Package release, h3-js",
      "display": "4.5.0",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Package release date, h3-js",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Install, h3-js",
      "display": "npm install h3-js@4.5.0",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Quickstart, h3-js",
      "display": "import { latLngToCell } from \"h3-js\";\nconsole.log(latLngToCell(37.3615593, -122.0553238, 7));\n",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Official description, h3-js",
      "display": "Provides a pure JavaScript version of H3, a hexagon-based geographic grid system.",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Quickstart source file, h3-js",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Repository stars, h3-js",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Spherical distance, h3-js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "GeoJSON geometry input, h3-js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Geometry and calculation model, h3-js",
      "display": "Hierarchical global geographic cell indexing and grid boundaries/neighborhoods; latitude/longitude indexing arguments differ from GeoJSON ring order.",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Coordinates and host setup, h3-js",
      "display": "h3ToPolygon(hexId, coverage=1) accepts an H3 cell index and optional coverage. It calls cellToBoundary(hexId, true) for a closed longitude/latitude ring; deck.gl helpers scale or normalize the vertices before returning them.",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Project function, h3-js",
      "display": "export function h3ToPolygon(hexId: H3IndexInput, coverage: number = 1): number[][] {\n  const vertices = cellToBoundary(hexId, true);\n\n  if (coverage !== 1) {\n    // scale and normalize vertices w.r.t to center\n    scalePolygon(hexId, vertices, coverage);\n  } else {\n    // normalize w.r.t to start vertex\n    normalizeLongitudes(vertices);\n  }\n\n  return vertices;\n}\n",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Project source file, h3-js",
      "display": "modules/geo-layers/src/h3-layers/h3-utils.ts",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Project full_name, h3-js",
      "display": "visgl/deck.gl",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Project stargazers_count, h3-js",
      "display": "14.8K",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Library name, jsts",
      "display": "JSTS",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Monthly downloads, jsts",
      "display": "7.7M",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "License, jsts",
      "display": "(EDL-1.0 OR EPL-1.0)",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Package release, jsts",
      "display": "2.12.1",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Package release date, jsts",
      "display": "Nov 2024",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Install, jsts",
      "display": "npm install jsts@2.12.1",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Quickstart, jsts",
      "display": "import GeoJSONReader from \"jsts/org/locationtech/jts/io/GeoJSONReader.js\";\nconst reader = new GeoJSONReader();\nconsole.log(reader.read({ type: \"Point\", coordinates: [0, 0] }));\n",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Repository stars, jsts",
      "display": "1.6K",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Spherical distance, jsts",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "GeoJSON geometry input, jsts",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Geometry and calculation model, jsts",
      "display": "Planar geometry topology, parsing, and buffering, including a bridge to injected OpenLayers geometry classes; units come from the input CRS.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Coordinates and host setup, jsts",
      "display": "JavaScript ESM host with direct published JSTS module paths. Reader returns a JSTS Geometry object. Geometry calculations are planar in the supplied coordinate system; reading a GeoJSON point does not itself project or convert coordinates.",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Project function, jsts",
      "display": "buffer(width) {\n  const parser = new OL3Parser();\n  parser.inject(\n    Point,\n    LineString,\n    LinearRing,\n    Polygon,\n    MultiPoint,\n    MultiLineString,\n    MultiPolygon,\n  );\n\n  const features = this.selectInteraction.getFeatures().getArray();\n  for (let i = 0; i < features.length; i += 1) {\n    const jstsGeom = parser.read(features[i].getGeometry());\n    const bo = new BufferOp(jstsGeom);\n    const buffered = bo.getResultGeometry(width);\n    features[i].setGeometry(parser.write(buffered));\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Project source file, jsts",
      "display": "src/control/buffer.js",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Project full_name, jsts",
      "display": "geops/openlayers-editor",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Project stargazers_count, jsts",
      "display": "230",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Library name, geolib",
      "display": "Geolib",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Monthly downloads, geolib",
      "display": "3.1M",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "License, geolib",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Package release, geolib",
      "display": "4.0.2",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Package release date, geolib",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Install, geolib",
      "display": "npm install geolib@4.0.2",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Quickstart, geolib",
      "display": "import { getDistance } from \"geolib\";\nconsole.log(getDistance({ latitude: 51.5103, longitude: 7.49347 }, { latitude: 51.525, longitude: 7.4575 }));\n",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Repository stars, geolib",
      "display": "4.3K",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Spherical distance, geolib",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "GeoJSON geometry input, geolib",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Geometry and calculation model, geolib",
      "display": "GPS-coordinate convenience calculations and radius/geofence checks over coordinate objects/arrays; spherical distance returns meters and elevation is outside its2D scope.",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Coordinates and host setup, geolib",
      "display": "Supported JavaScript ESM host or bundler. Plain latitude/longitude objects are complete inputs; output is a distance in meters. The documented accuracy parameter controls rounding and is not a measured positioning-accuracy guarantee.",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Project function, geolib",
      "display": "export function inZone(location: locationData, zone: locationData): boolean {\n    const { radius = 0, ...zoneLatLog } = zone;\n    const inZone = isPointWithinRadius(location, zoneLatLog, radius);\n\n    return inZone;\n}\n",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Project source file, geolib",
      "display": "src/nodes/zone/helpers.ts",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Project full_name, geolib",
      "display": "zachowj/node-red-contrib-home-assistant-websocket",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Project stargazers_count, geolib",
      "display": "601",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Projects onto a flat map",
      "display": "Projects onto a flat map",
      "asOf": "2026-11-17"
    },
    "F266": {
      "label": "Projections turn spherical polygons into planar polygons for drawing.",
      "display": "Projections turn spherical polygons into planar polygons for drawing.",
      "asOf": "2026-11-17"
    },
    "F267": {
      "label": "Clipped points return null",
      "display": "Clipped points return null",
      "asOf": "2026-11-17"
    },
    "F268": {
      "label": "Check for null when a point falls outside the projection's clipping bounds.",
      "display": "Check for null when a point falls outside the projection's clipping bounds.",
      "asOf": "2026-11-17"
    },
    "F269": {
      "label": "Merges and quantizes shapes",
      "display": "Merges and quantizes shapes",
      "asOf": "2026-11-17"
    },
    "F270": {
      "label": "Merge shapes or quantize coordinates before converting back to GeoJSON.",
      "display": "Merge shapes or quantize coordinates before converting back to GeoJSON.",
      "asOf": "2026-11-17"
    },
    "F271": {
      "label": "Precise at city scale",
      "display": "Precise at city scale",
      "asOf": "2026-11-17"
    },
    "F272": {
      "label": "Under 500 km and away from the poles, results stay within 0.1% of Vincenty's formulae.",
      "display": "Under 500 km and away from the poles, results stay within 0.1% of Vincenty's formulae.",
      "asOf": "2026-11-17"
    },
    "F273": {
      "label": "Reuse one ruler per area",
      "display": "Reuse one ruler per area",
      "asOf": "2026-11-17"
    },
    "F274": {
      "label": "Create a ruler once for an area and reuse it across calculations.",
      "display": "Create a ruler once for an area and reuse it across calculations.",
      "asOf": "2026-11-17"
    },
    "F275": {
      "label": "Indexes points into hexagons",
      "display": "Indexes points into hexagons",
      "asOf": "2026-11-17"
    },
    "F276": {
      "label": "latLngToCell turns a latitude and longitude into a hexagon index at a chosen resolution.",
      "display": "latLngToCell turns a latitude and longitude into a hexagon index at a chosen resolution.",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "Function names changed in v4",
      "display": "Function names changed in v4",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Code written for H3 v3 needs the renamed v4 functions.",
      "display": "Code written for H3 v3 needs the renamed v4 functions.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript geospatial libraries Turf JSTS Proj4js Geolib code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
