@zukall/zap 0.2.0 → 0.2.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.
package/PROTOCOL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# ZAP — Zukall Addressing Protocol, version 2
|
|
2
2
|
|
|
3
3
|
Protocol 2 uses **100-meter grid blocks** and **1-meter detail**, computed from
|
|
4
|
-
unrounded projected GPS coordinates. The npm package version (`0.2.
|
|
4
|
+
unrounded projected GPS coordinates. The npm package version (`0.2.2`) and
|
|
5
5
|
protocol version (`2`) are separate. Previously issued protocol-1 addresses retain
|
|
6
6
|
their original text and identity; see [PROTOCOL-V1.md](PROTOCOL-V1.md).
|
|
7
7
|
|
package/README.md
CHANGED
|
@@ -5,6 +5,95 @@ fixed country/province grids. Protocol **2** encodes **100-meter blocks** and
|
|
|
5
5
|
separate **whole-meter remainders**. It needs no Google Places API, geocoding
|
|
6
6
|
service, network request, or runtime dependency. Generation works offline.
|
|
7
7
|
|
|
8
|
+
## See how ZAP works: Haiti’s grid
|
|
9
|
+
|
|
10
|
+
These illustrations show locations in the same fixed Haiti grid. Each address
|
|
11
|
+
is derived independently from its coordinates. The road can run north–south,
|
|
12
|
+
east–west, diagonally, or curve; the grid origin and axes stay fixed.
|
|
13
|
+
|
|
14
|
+
### Whole-country grid and fixed center
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
The Haiti grid has one fixed center: **19.0578675° N, 73.0641385° W**.
|
|
19
|
+
It is the center of the configured rectangle, in the Gulf of Gonâve, rather than
|
|
20
|
+
the capital or a street junction. Every Haiti address uses that same origin.
|
|
21
|
+
North/south and east/west offsets start there and increase away from it.
|
|
22
|
+
|
|
23
|
+
| Configured rectangle edge | GPS limit |
|
|
24
|
+
| --- | --- |
|
|
25
|
+
| North | 20.089789° N |
|
|
26
|
+
| South | 18.025946° N |
|
|
27
|
+
| West | 74.489167° W |
|
|
28
|
+
| East | 71.639110° W |
|
|
29
|
+
|
|
30
|
+
The whole-country overview is **schematic and not to scale**. Its grid lines
|
|
31
|
+
make the fixed axes visible; the calculation panel explains **100-meter blocks**
|
|
32
|
+
and the two whole-meter remainders. The coastline is illustrative. The configured
|
|
33
|
+
rectangle includes sea and is not an administrative boundary.
|
|
34
|
+
|
|
35
|
+
For the Marriott example, GPS **(18.532731, -72.324187)** projects to
|
|
36
|
+
−58,229.5607 meters northing and +78,013.0303 meters easting. Flooring their
|
|
37
|
+
absolute values gives 58,229 whole meters south and 78,013 east: **582 S 780 E
|
|
38
|
+
#29-13, Port-au-Prince, HT ZAP**. The suffix records another 29 whole meters
|
|
39
|
+
south and 13 east after the complete blocks. Use the saved GPS point for navigation.
|
|
40
|
+
|
|
41
|
+
**Current suffix notation is `#42-68`.** The north–south and east–west images use
|
|
42
|
+
the compact notation `#4268` for the same two remainders: 42 south and 68 east.
|
|
43
|
+
The examples and captions below use the current dashed format.
|
|
44
|
+
|
|
45
|
+
### North–south: easting stays fixed
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
Point A: 580 S 772 E #42-68, HT ZAP
|
|
51
|
+
Point B: 581 S 772 E #42-68, HT ZAP
|
|
52
|
+
Point C: 582 S 772 E #42-68, HT ZAP
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
From A to B, the location moves 100 projected meters south: the south block
|
|
56
|
+
increases from 580 to 581, while the east block and both remainders stay fixed.
|
|
57
|
+
Moving north on this side of the origin decreases the south block.
|
|
58
|
+
|
|
59
|
+
### East–west: northing stays fixed
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
Point A: 582 S 770 E #42-68, HT ZAP
|
|
65
|
+
Point B: 582 S 771 E #42-68, HT ZAP
|
|
66
|
+
Point C: 582 S 772 E #42-68, HT ZAP
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
From A to B, the location moves 100 projected meters east: the east block
|
|
70
|
+
increases from 770 to 771, while the south block and both remainders stay fixed.
|
|
71
|
+
Moving west on this side of the origin decreases the east block.
|
|
72
|
+
|
|
73
|
+
### Diagonal streets: both axes can change
|
|
74
|
+
|
|
75
|
+

|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
Point A: 580 S 770 E #43-46, HT ZAP
|
|
79
|
+
Point B: 581 S 771 E #12-36, HT ZAP
|
|
80
|
+
Point C: 582 S 772 E #08-41, HT ZAP
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Both axes and their remainders can change along a diagonal or curved street.
|
|
84
|
+
For point C, the whole-meter magnitudes are `582 × 100 + 08 = 58,208` south
|
|
85
|
+
and `772 × 100 + 41 = 77,241` east. The `#08-41` suffix keeps its leading zero.
|
|
86
|
+
|
|
87
|
+
The images are illustrative grid examples. To reach a real place, use its saved
|
|
88
|
+
GPS entrance point for road directions; the grid comparison describes relative
|
|
89
|
+
position rather than a route through buildings or other obstacles. The same
|
|
90
|
+
encoding applies to the other configured countries and provinces.
|
|
91
|
+
|
|
92
|
+
The README uses four compressed WebP illustrations, each below 100 KB.
|
|
93
|
+
Original PNGs remain in the source project; only the smaller WebP versions are
|
|
94
|
+
included in the npm package. The compressed package stays below 400 KB,
|
|
95
|
+
including all four illustrations.
|
|
96
|
+
|
|
8
97
|
```text
|
|
9
98
|
1194 S 382 E #16-20, Kampala, UG ZAP
|
|
10
99
|
2106 S 3614 E #22-64, Miami, FL US ZAP
|
|
@@ -15,6 +104,82 @@ These illustrate the display format. Actual numbers depend on the original GPS
|
|
|
15
104
|
point and selected grid; a city label never changes the origin or verifies
|
|
16
105
|
administrative membership.
|
|
17
106
|
|
|
107
|
+
## Why use ZAP?
|
|
108
|
+
|
|
109
|
+
**Different countries. Different street addresses. One consistent location format.**
|
|
110
|
+
|
|
111
|
+
A well-defined address identifies a destination, but it does not automatically tell an unfamiliar person how to reach it. Immokalee, Florida, has formally assigned addresses, yet a newcomer may still need a map, street signs, or knowledge of the road layout.
|
|
112
|
+
|
|
113
|
+
ZAP gives your application a consistent way to address locations directly from GPS coordinates. It works alongside conventional addresses and can provide a location address where street names or building numbers are missing.
|
|
114
|
+
|
|
115
|
+
### Addresses without waiting for an address authority
|
|
116
|
+
|
|
117
|
+
ZAP derives its location code from coordinates and a fixed grid. A country does
|
|
118
|
+
not need an address authority, a complete street-address registry, named roads,
|
|
119
|
+
or assigned building numbers for applications to generate ZAP addresses within
|
|
120
|
+
that grid. A home, business, rural property entrance, or pickup point can receive
|
|
121
|
+
a coordinate address as soon as its GPS location is available.
|
|
122
|
+
|
|
123
|
+
The same method can be applied in any country with a configured grid. This
|
|
124
|
+
release includes **239 country/territory configurations**, with country-wide
|
|
125
|
+
grids or explicitly selected province/state grids. Coverage follows those
|
|
126
|
+
configurations; adding an unconfigured country requires a versioned grid
|
|
127
|
+
definition. The address structure stays consistent across them.
|
|
128
|
+
|
|
129
|
+
**Haiti is the illustrated example above.** Its `HT` configuration provides one
|
|
130
|
+
fixed country grid, so a place can be addressed even when its street name,
|
|
131
|
+
building number, or formal address record is unavailable. This shows independence
|
|
132
|
+
from official address assignment; the method also works alongside existing
|
|
133
|
+
Haitian street addresses, such as the hotel example in the table.
|
|
134
|
+
|
|
135
|
+
A visitor or delivery driver can use a ZAP-aware application to view their
|
|
136
|
+
current location and destination in the same grid. Comparing their blocks,
|
|
137
|
+
directions, and remainders helps them understand the destination's relative
|
|
138
|
+
position. Saved GPS coordinates connect that destination to road directions.
|
|
139
|
+
|
|
140
|
+
### Different local addresses, the same ZAP structure
|
|
141
|
+
|
|
142
|
+
| Location | Conventional address | ZAP address |
|
|
143
|
+
| --- | --- | --- |
|
|
144
|
+
| **Miami, USA — City Hall** | 3500 Pan American Drive, Miami, FL 33133, USA. (25.7276845, -80.2337652) | `2220 S 3602 E #92-35, Miami, FL US ZAP` |
|
|
145
|
+
| **Beijing, China — Sofitel Beijing Central** | No. 2 Jianguomen South Avenue, Chaoyang District, Beijing 100022, China. (39.906274, 116.436733) | `375 S 15 W #62-74, Beijing, BJ CN ZAP` |
|
|
146
|
+
| **Abidjan, Côte d’Ivoire — Sofitel Hotel Ivoire** | Boulevard Hassan II, Cocody, 08 BP 01 Abidjan, Côte d’Ivoire. (5.326842, -4.005485) | `2452 S 1724 E #88-29, Abidjan, CI ZAP` |
|
|
147
|
+
| **Port-au-Prince, Haiti — Marriott Hotel** | 147 Avenue Jean Paul II, Turgeau, Port-au-Prince, HT 6113, Haiti. (18.532731, -72.324187) | `582 S 780 E #29-13, Port-au-Prince, HT ZAP` |
|
|
148
|
+
| **Berlin, Germany — Brandenburg Gate** | Pariser Platz 5, 10117 Berlin, Germany. (52.5162, 13.3780) | `1538 N 1989 E #91-52, Berlin, DE ZAP` |
|
|
149
|
+
|
|
150
|
+
*Coordinates are (latitude, longitude), in decimal degrees. Each displayed GPS point reproduces the adjacent ZAP address using package version 0.2.0. They demonstrate the format; the points are not independently verified entrances.*
|
|
151
|
+
|
|
152
|
+
Map/GPS references: [Miami City Hall](https://www.miami.gov/Notices/Events-Activities/City-of-Miami-Holiday-Festival), [Sofitel Beijing Central](https://all.accor.com/hotel/B628/index.en.shtml), [Sofitel Hotel Ivoire](https://all.accor.com/hotel/8844/index.en.shtml), [Marriott Port-au-Prince](https://www.marriott.com/en-us/hotels/papmc-marriott-port-au-prince-hotel/overview/), and [Brandenburg Gate visitor information](https://www.visitberlin.de/en/brandenburg-gate).
|
|
153
|
+
|
|
154
|
+
Street names, languages, address order, and postal components vary. ZAP uses the same generation function and encoding structure across its configured grids.
|
|
155
|
+
|
|
156
|
+
### Understand the address
|
|
157
|
+
|
|
158
|
+
In `582 S 780 E #29-13, Port-au-Prince, HT ZAP`:
|
|
159
|
+
|
|
160
|
+
- **582 S:** 582 complete 100-meter blocks south of the selected grid origin.
|
|
161
|
+
- **780 E:** 780 complete 100-meter blocks east of that origin.
|
|
162
|
+
- **#29-13:** another 29 whole projected meters south and 13 east within those blocks.
|
|
163
|
+
- **HT:** Haiti’s country code.
|
|
164
|
+
|
|
165
|
+
The directions refer to the grid’s fixed origin. The suffix describes coordinate detail, rather than a sequential house number.
|
|
166
|
+
|
|
167
|
+
### Why developers choose ZAP
|
|
168
|
+
|
|
169
|
+
- **Generate addresses from GPS**, including locations without useful street addresses.
|
|
170
|
+
- **Use one format across configured countries and provinces.**
|
|
171
|
+
- **Generate offline**, without a geocoding API, API key, or runtime dependency once coordinates are available.
|
|
172
|
+
- **Get repeatable results** from the same coordinates, grid, and protocol version.
|
|
173
|
+
- **Keep local context**, displaying street addresses, landmarks, and unit details alongside ZAP.
|
|
174
|
+
|
|
175
|
+
### Identifying a destination and reaching it
|
|
176
|
+
|
|
177
|
+
ZAP works with straight, diagonal, and curved streets. Its grid stays fixed; both coordinate numbers can change along a diagonal road.
|
|
178
|
+
|
|
179
|
+
For navigation, use the original saved GPS coordinates—preferably the entrance point—to open road directions. Keep helpful street names and landmarks visible.
|
|
180
|
+
|
|
181
|
+
ZAP complements existing addresses. Whole-meter encoding does not guarantee one-meter GPS accuracy, and a location code does not automatically identify a unique household or apartment.
|
|
182
|
+
|
|
18
183
|
## Installation and local verification
|
|
19
184
|
|
|
20
185
|
After publication:
|
|
@@ -26,13 +191,13 @@ npm install @zukall/zap
|
|
|
26
191
|
Before publication, install the verified local package:
|
|
27
192
|
|
|
28
193
|
```sh
|
|
29
|
-
npm install /absolute/path/to/
|
|
194
|
+
npm install /absolute/path/to/zukall-address-protocol/.artifacts/zukall-zap-0.2.2.tgz
|
|
30
195
|
```
|
|
31
196
|
|
|
32
197
|
Build and verify the source:
|
|
33
198
|
|
|
34
199
|
```sh
|
|
35
|
-
cd /absolute/path/to/
|
|
200
|
+
cd /absolute/path/to/zukall-address-protocol
|
|
36
201
|
npm ci
|
|
37
202
|
npm run check
|
|
38
203
|
npm run pack:check
|
|
@@ -406,11 +571,11 @@ removed-option error.
|
|
|
406
571
|
```sh
|
|
407
572
|
npm login
|
|
408
573
|
npm run pack:check
|
|
409
|
-
npm publish
|
|
574
|
+
npm publish ./.artifacts/zukall-zap-0.2.2.tgz --access public
|
|
410
575
|
```
|
|
411
576
|
|
|
412
577
|
An npm account with permission to publish `@zukall/zap` is required. Building and
|
|
413
|
-
packing do not publish the package. Package version is `0.2.
|
|
578
|
+
packing do not publish the package. Package version is `0.2.2`; current protocol
|
|
414
579
|
version is `2`, while preserved legacy results remain version `1`.
|
|
415
580
|
|
|
416
581
|
## License
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zukall/zap",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "ZAP (Zukall Addressing Protocol): deterministic 100-meter grid blocks with whole-meter detail from GPS coordinates.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|
|
35
|
+
"asset/*.webp",
|
|
35
36
|
"README.md",
|
|
36
37
|
"PROTOCOL.md",
|
|
37
38
|
"PROTOCOL-V1.md",
|