@finbheara/domain 0.30.0 → 0.31.0
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/README.md +11 -5
- package/dist/chunks/{place-h2s1w0tq.js → place-6qvca8eg.js} +1 -1
- package/dist/geocode.js +143 -131
- package/dist/place.js +1 -1
- package/dist/school.js +1 -1
- package/dist/types/geocode.d.ts +1 -0
- package/dist/types/place-towns.d.ts +1 -1
- package/dist/types/place-within.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,13 +122,19 @@ geocode("Brooklyn").isPlace(); // false: a town of six US states and more, so
|
|
|
122
122
|
// `Brooklyn, NY` reads
|
|
123
123
|
place("Drogheda").arm; // "unread": the store holds no Drogheda
|
|
124
124
|
geocode("Prague", { near: "RCCEA", declared: true }).isPlace();
|
|
125
|
-
// false: the
|
|
126
|
-
//
|
|
125
|
+
// false: the town lies outside the context, so
|
|
126
|
+
// no namesake town is read
|
|
127
|
+
geocode("Fife").isPlace(); // false: a town of Washington, and a council area
|
|
128
|
+
// of Scotland
|
|
127
129
|
```
|
|
128
130
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
The layer reads a bare town by its name alone, so it reads one only where nothing contradicts
|
|
132
|
+
it. A context (a `country` or `near`, read by the store, never as a town of the layer) that
|
|
133
|
+
reads to ONE place which neither holds the town nor shares its country stops the layer: `Prague`
|
|
134
|
+
near `RCCEA` and `Whitecross` under `Ireland` and `Ulster` read nothing. A context the store
|
|
135
|
+
reads nothing for, or reads as several places, stops nothing, so with no context
|
|
136
|
+
`geocode("Prague")` is still Prague, Oklahoma. A town named like a GeoNames admin2 area of those
|
|
137
|
+
six countries that does not hold it (`Fife`) reads only where a context places it. A print with a
|
|
132
138
|
qualifier (`Yonkers, NY`) is never stopped: the context never overrules the print.
|
|
133
139
|
|
|
134
140
|
A `Place` is one of four arms: `resolved`, `plural` (a print naming more than one place),
|