@opensystemslab/map 1.0.0-alpha.6 → 1.0.0-alpha.8

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm @opensystemslab/map](https://img.shields.io/npm/v/@opensystemslab/map?style=flat-square)](http://npm.im/@opensystemslab/map)
4
4
 
5
- A library of [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) for tasks related to addresses and planning permission in the UK built with [Lit](https://lit.dev/), [Vite](https://vitejs.dev/), and [Ordnance Survey APIs](https://developer.ordnancesurvey.co.uk/).
5
+ A library of [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) for tasks related to addresses and planning permission in the UK built with [Lit](https://lit.dev/), [Vite](https://vitejs.dev/), and [Ordnance Survey APIs](https://docs.os.uk/os-apis).
6
6
 
7
7
  **_Web map_**
8
8
 
@@ -16,12 +16,16 @@ A library of [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_C
16
16
 
17
17
  **_Address autocomplete_**
18
18
 
19
- `<address-autocomplete />` fetches addresses in a given UK postcode using the [OS Places API](https://developer.ordnancesurvey.co.uk/os-places-api) and displays them using GOV.UK's [accessible-autocomplete](https://github.com/alphagov/accessible-autocomplete) component. An event is dispatched with the OS record when you select an address.
19
+ `<address-autocomplete />` fetches addresses in a given UK postcode using the [OS Places API](https://docs.os.uk/os-apis/accessing-os-apis/os-places-api/technical-specification/postcode) and displays them using GOV.UK's [accessible-autocomplete](https://github.com/alphagov/accessible-autocomplete) component. An event is dispatched with the OS record when you select an address.
20
20
 
21
21
  These web components can be used independently or together following GOV.UK's [Address lookup](https://design-system.service.gov.uk/patterns/addresses/) design pattern.
22
22
 
23
23
  ![chrome-capture-2022-7-16 (1)](https://user-images.githubusercontent.com/5132349/184858819-133bc7fa-7f48-4a2a-a416-b612febcce58.gif)
24
24
 
25
+ **_Geocode autocomplete_**
26
+
27
+ `<geocode-autocomplete />` is a web component that provides an autocomplete input for searching locations using the [OS Places API](https://docs.os.uk/os-apis/accessing-os-apis/os-places-api/technical-specification/find). It displays likely matches in a dropdown. When a location is selected, it dispatches an event with the OS record.
28
+
25
29
  ## Documentation & examples
26
30
 
27
31
  - Interactive web component docs [oslmap.netlify.app](https://oslmap.netlify.app)
@@ -1,6 +1,7 @@
1
- import { A as s, M as a, P as r } from "./index-D01mRj0Z.mjs";
1
+ import { A as s, G as a, M as t, P as c } from "./index-yh__5vWy.mjs";
2
2
  export {
3
3
  s as AddressAutocomplete,
4
- a as MyMap,
5
- r as PostcodeSearch
4
+ a as GeocodeAutocomplete,
5
+ t as MyMap,
6
+ c as PostcodeSearch
6
7
  };