Scan your whole stack
From OX Research Newsroom
Are you using @procedures/geo?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.68.7
@procedures/geo was last scanned on 24 Nov 2026 at version 0.68.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.68.7 LATEST | 24 Nov 2026 | No rules fired |
| 0.68.6 | 24 Nov 2026 | No rules fired |
| 0.68.5 | 24 Nov 2026 | No rules fired |
| 0.68.4 | 24 Nov 2026 | Not shown |
| 0.68.3 | 24 Nov 2026 | Not shown |
Findings for v0.68.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.68.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Map procedures. They give the coordinates of an address (OpenStreetMap Nominatim) and the time and the distance of a drive (OSRM). They also give the map data of a box as GeoJSON (OpenStreetMap and ArcGIS layers). The package also has a procedure for each function of @mark1russell7/geo: distances, bearings, boxes, polygons, buffers and geohashes.
pnpm add @procedures/geo @procedures/client
A host registers the procedures with createRegistry(geoModule), or with import "@procedures/geo/register" for the global registry. The package root and ./module register nothing.
| Procedure | Effects | What it does |
|---|---|---|
geo.geocode |
reads network |
Finds the coordinates of an address or a place name. |
geo.route |
reads network |
Gives the kilometres and the minutes of a drive between two points. With line, it also gives the points of the route. |
geo.osmFeatures |
reads network |
Gives the features of OpenStreetMap in a box, as GeoJSON. |
geo.arcgisFeatures |
reads network |
Gives the features of an ArcGIS layer in a box, as GeoJSON. |
geo.distance |
none | Gives the great-circle distance between two points, in kilometres. It is deprecated: use geo.distanceKm. |
geo.geohash |
none | Gives the geohash of a point and the cell of that geohash. |
| 45 generated procedures | none | Each one calls one function of @mark1russell7/geo, for example geo.distanceKm, geo.destinationKm and geo.bboxOfPoints. |
const { found, result } = await client.exec(["geo", "geocode"], {
query: "Brandenburger Tor, Berlin",
userAgent: "my-app/1.0 (me@example.org)",
});
The package has 45 procedures in the namespace geo that come from the types of @mark1russell7/geo. Each one calls one function of the library with JSON inputs and a JSON output. Each one has no effects: it reads nothing and writes nothing.
$defs.{ lat, lon } in degrees, for example { "lat": 42.3601, "lon": -71.0589 }.geoManifest gives the names, the schemas and the effects of each generated procedure. geoHomeProcedures gives the procedures. geoModule and createGeoModule() have them.
import { createRegistry, invokePath, outputValue } from "@procedures/client";
import { geoModule } from "@procedures/geo";
const registry = createRegistry(geoModule);
const output = await invokePath(["geo", "destinationKm"], { from: { lat: 42.3601, lon: -71.0589 }, bearingDegrees: 225, distance: 300 }, { registry });
const point = await outputValue(output);
7 functions of the library have no procedure. The manifest gives each with its reason:
| Functions | Reason | The cause |
|---|---|---|
geohash |
overlay |
The hand-written procedure geo.geohash has this name. It also gives the cell of the hash. |
parseGeoJson, parseGeometry, parseLatLon |
output-not-json |
The result can hold an instance of the class GeoError. |
pointLocator, regionSimplifier |
output-not-json |
The result is a function. |
lineReference |
output-not-json |
The result is an object with functions. |
After an update of @mark1russell7/geo, start this command from the root of the repository:
node scripts/wraps.ts generate --package geo
The command writes src/manifest.ts. It also raises the ratchet of the library in wraps.coverage.json. CI starts node scripts/wraps.ts check. The check fails when the manifest is not current, or when the share of the functions with a procedure falls.
The wrap is pure: its wrap.json has "pure": true. So the check also examines the effects of the generated procedures, the browser entries and the program point-at-the-median-distance of wraps.programs.json. The hand-written procedures geo.geocode, geo.route, geo.osmFeatures and geo.arcgisFeatures read the network. They are not in the manifest, so the gate does not examine them.
The procedures geo.distance and geo.geohash use @mark1russell7/geo. They use no network. For the plain functions, import that package:
import { decodeGeohash, distanceKm, geohash } from "@mark1russell7/geo";
import { EARTH_RADIUS_KM } from "@procedures/geo";
distanceKm({ lat: 48.8584, lon: 2.2945 }, { lat: 52.5163, lon: 13.3777 }, EARTH_RADIUS_KM); // 879.0864603595937
geohash({ lat: 48.8584, lon: 2.2945 }); // "u09tunq"
decodeGeohash("u09tunq"); // { south, west, north, east, center }
geo.distance uses the haversine formula on a sphere with the mean radius of the Earth (EARTH_RADIUS_KM, 6371 km). It does not round the result. A road is longer than this distance.geo.distance is deprecated, and it goes at a later MINOR of the client group. geo.distanceKm with radiusKm: 6371 gives the same value. Its default radius is 6371.0088 km.geo.geohash gives precision characters (1 to 12, default 7) and the cell of the geohash. The first bit is the longitude. A coordinate on the middle of a range goes to the upper half.greatCircleKm, geohash, decodeGeohash, GeohashCell and the geohash constants. They are deprecated, and they go at the next MINOR of the client group. Until then, they keep their old checks.Two procedures give the features of a box as a GeoJSON feature collection (RFC 7946), in WGS84 longitude and latitude. A printed map or a map on a screen draws them.
const shelters = await client.exec(["geo", "osmFeatures"], {
bbox: { west: 10.0, south: 50.0, east: 10.05, north: 50.03 },
selectors: [{ key: "amenity", values: ["shelter"] }, { key: "emergency", values: ["assembly_point"] }],
userAgent: "my-app/1.0 (me@example.org)",
});
const zones = await client.exec(["geo", "arcgisFeatures"], {
layerUrl: "https://gis.example.org/arcgis/rest/services/Zones/FeatureServer/0",
bbox: { west: 10.0, south: 50.0, east: 10.05, north: 50.03 },
userAgent: "my-app/1.0 (me@example.org)",
});
geo.osmFeatures sends one query to an Overpass server:
isOsmArea decides if a closed way is an area. It uses area=yes, area=no, and the rules of the OpenStreetMap wiki in OSM_AREA_RULES.skipped, with its reason. An incomplete feature is also in skipped.attribution, the copyright text of the data. A map of the data must show it. dataAt is the time of the data of the server.geo.arcgisFeatures asks a layer of an ArcGIS map service for the features that intersect the box:
where and outFields select the features and their fields.maxFeatures (default 10000). truncated tells if the limit stopped the pages.A box that crosses the antimeridian has its west more than its east. It gives two queries.
locateAddress finds the point of a street address in the features of geo.osmFeatures. It is a pure function. The address does not go to a server, because the request asks only for the data of a box.
import { locateAddress, parseStreetAddress, townBox } from "@procedures/geo";
const box = townBox(boundaries.collection.features, { name: "Exampleton", postcode: "00001" });
// Then fetch the elements with the tag addr:housenumber and the ways with the tag highway in the box.
const address = parseStreetAddress("24 Elm Street");
const found = address && locateAddress({ address, addresses: numbers.collection.features, streets: roads.collection.features });
normalizeStreet writes each street name in one form, so "St. Mark's Avenue" and "Saint Marks Ave" are equal. STREET_WORDS is the table of the street words of the United States. A caller gives a different table for a different country.townBox gives the box of the administrative boundaries with the name of a town, and the areas with its postal code.match, the ids of the elements, and their spread in metres.interpolation. The function joins the ways of the street with joinLines of @mark1russell7/geo, and uses the line with the most known numbers.leastSquares of @mark1russell7/rigor-statistics.errorMeters is the error of the method on the data. The function removes each known element in turn and finds its point from the other elements. The value has the median and the largest error.none and its reason.Both procedures send their requests through polite-crawler/api:
Retry-After, or for a backoff. A 401 or a 403 stops the host for one hour.DEFAULT_ATTEMPTS (3) times.geoPace() gives the pace of the process. Give your own pace to createGeoModule({ pace }) to share it with your other API clients.overpassQuery, overpassExchange, osmFeatures, arcgisExchange, arcgisPage and bboxParts.The public Overpass servers ask for moderate use and a User-Agent that names your application, so userAgent is necessary. Give baseUrl to use your own Overpass server.
zipCenter gives an approximate point for a US ZIP code. The point is the internal point of its ZIP Code Tabulation Area (ZCTA). The data comes from the national ZCTA file of the Census Gazetteer. The caller downloads the whole file one time, so no request names the ZIP code.
import { readZipEntries } from "@mark1russell7/files/archive";
import { parseZctaGazetteer, zctaGazetteerUrl, zctaIndex, zipCenter } from "@procedures/geo";
const bytes = new Uint8Array(await (await fetch(zctaGazetteerUrl(2024))).arrayBuffer());
const read = readZipEntries(bytes);
const entry = read.ok ? read.entries.find((file) => file.name.endsWith(".txt")) : undefined;
const index = zctaIndex(parseZctaGazetteer(new TextDecoder().decode(entry?.bytes)));
const point = zipCenter("00001-0002", index);
zctaGazetteerUrl gives the URL of the file of a year, from 2012. The file is a ZIP archive of approximately 1 MB with one text file.readZipEntries of @mark1russell7/files/archive on Node.parseZctaGazetteer reads the text. It finds the columns GEOID, ALAND, INTPTLAT and INTPTLONG by name, and ignores the spaces around each value.zip5 gives the 5 digits of 12345 and 12345-6789. zipCenter accepts the two forms.undefined. A ZIP code of post office boxes only often has no ZCTA.ZCTA_GAZETTEER_ATTRIBUTION names the source.The Nominatim policy permits at most one request each second. A User-Agent that names your application is necessary, so geo.geocode has the field userAgent. The OSRM demonstration server has a fair-use limit. Give baseUrl to use your own server of either kind.
The procedures that use the network send their requests with the fetch of the module. The default is the global fetch, so the root stays safe for a browser. The map data procedures also read text() and the headers of the response.
A Node host that serves other callers gives createHostFetch() of @procedures/http to createGeoModule(). Then the host policy examines each baseUrl and each layerUrl. It refuses a loopback, private or link-local address, unless the allow list of the host has it:
import { createHostFetch } from "@procedures/http";
import { createGeoModule } from "@procedures/geo/module";
const registry = createRegistry(createGeoModule({ fetch: createHostFetch({ allow: ["osrm.lan:5000"] }) }));
mcpHostModules of @procedures/bundle-assistant has a module of geo with this fetch. The dev-tools server uses it. A refusal is FORBIDDEN with the reason host-not-allowed.
The entry @procedures/geo/tiles is for Node only. The root of the package stays safe for a browser.
import { cachedTile, isTile } from "@procedures/geo/tiles";
const tile = { z: 12, x: 1205, y: 1539 };
if (isTile(tile)) {
const png = await cachedTile(tile, { dir: "var/tiles", userAgent: "my-app/1.0 (me@example.com)" });
} Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.