Adding an address-search component using the OS Places API #92
jessicamcinchak
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Dev call notes:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Idea:
An
<os-address-search ... />web component that would fetch addresses from the OS Places API and render html input(s) following this Gov.UK accessible autocomplete example.While we currently use the
/postcodeOS Places endpoint, we could switch to using the/polygonendpoint to offer a single line address search (docs here). Our polygon would come from the/entitiysearch of the Digital Land API (beta docs here), which provides the boundary of each local authority. Then we can fetch all addresses in that local authority from OS Places to populate the autocomplete selection list.Essentially this would be a small shift to starting thinking of this repo as less map-centric, but rather a small library of web components for working with UK address data and Ordnance Survey products.
What it helps solve in the short term:
/polygonendpoint re-introduces the local authority validation that we previously did via GSS code, which is important to partners to ensure applications are submitted to the proper serviceLonger term use cases / benefits:
Possible challenges?:
@lit-labs/reactlibrary, which helps simplify event listeners too). Lots more to learn & understand here personallyaccessible-autocompleterepo behind the example recommended by the accessiblilty auditors hasn't had commit activity in > 1.5 years and there a number of outstanding issues pointing out failures/incompatabilities with newer versions of assistive technologiesThoughts? Any other concerns?
Beta Was this translation helpful? Give feedback.
All reactions