@unmap/geocoding 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +19 -2
package/README.md CHANGED
@@ -21,14 +21,14 @@ await geocoder.reverse(-68.517, 63.749)
21
21
  ```
22
22
 
23
23
  Every method resolves to a `GeocodeResult[]`: `id`, `name`, `layer`, `lng`, `lat`, plus `score`
24
- (search and autocomplete), `distance` in metres and `category` (nearby), `names` when the place
25
- has names in more than one language, and a structured `address` when one exists.
24
+ (search and autocomplete), `distance` in metres and `category` (nearby), `names` when the record
25
+ carries language-keyed labels, and a structured `address` when one exists.
26
26
 
27
27
  `search` and `autocomplete` take `{ limit, lang, bbox, signal }`; `nearby` takes exactly one of
28
28
  `near: [lng, lat]` or `bbox`, plus `{ radius, limit, lang, signal }`; `reverse` takes
29
29
  `{ lang, signal }`. `category` accepts taxonomy ids (`health.pharmacy`) or plain English or
30
- French words (`pharmacy`, `pharmacie`). A non-2xx response throws a `GeocoderError` carrying the
31
- HTTP `status`.
30
+ French words (`pharmacy`, `pharmacie`), one at a time or up to eight as an array. A non-2xx
31
+ response throws a `GeocoderError` carrying the HTTP `status`.
32
32
 
33
33
  Parameters, defaults, the category list, and error bodies are documented at
34
34
  [unmap.dev/docs/geocoding-api](https://unmap.dev/docs/geocoding-api).
package/package.json CHANGED
@@ -1,7 +1,24 @@
1
1
  {
2
2
  "name": "@unmap/geocoding",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Typed client for the unmap geocoding API",
5
+ "keywords": [
6
+ "unmap",
7
+ "geocoding",
8
+ "geocoder",
9
+ "autocomplete",
10
+ "reverse-geocoding",
11
+ "canada"
12
+ ],
13
+ "homepage": "https://unmap.dev/docs/geocoding-api",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/unmap-dev/unmap.git",
17
+ "directory": "packages/geocoding"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/unmap-dev/unmap/issues"
21
+ },
5
22
  "type": "module",
6
23
  "main": "./dist/index.js",
7
24
  "module": "./dist/index.js",
@@ -20,7 +37,7 @@
20
37
  "access": "public"
21
38
  },
22
39
  "dependencies": {
23
- "@unmap/core": "0.1.0"
40
+ "@unmap/core": "0.1.2"
24
41
  },
25
42
  "devDependencies": {
26
43
  "tsup": "^8.3.0",