Skip to content

feat(DTFS-7052): added GET /geospatial/addresses/postcode endpoint for Ordnance Survey API data#804

Merged
avaitonis merged 61 commits intomainfrom
feat/DTFS2-7052/new-external-ordnance-survey-api
May 13, 2024
Merged

feat(DTFS-7052): added GET /geospatial/addresses/postcode endpoint for Ordnance Survey API data#804
avaitonis merged 61 commits intomainfrom
feat/DTFS2-7052/new-external-ordnance-survey-api

Conversation

@avaitonis
Copy link
Copy Markdown
Contributor

Introduction ✏️

We are moving integration with Ordnance Survey API from DTFS to MDM API.

Resolution ✔️

  • Added new helper module ordnance-survey
  • Added new module geospatial with endpoint /geospatial/addresses/postcode?postcode=SW1A2AQ
    • returns same response format as DTFS.
    • returns country field, DTFS was always returning {country: null}
    • returns 200 [] for empty unsuccessful search.

Response example:

[
    {
        "organisationName": "CHURCHILL MUSEUM & CABINET WAR ROOMS",
        "addressLine1": "CLIVE STEPS KING CHARLES STREET",
        "addressLine2": null,
        "addressLine3": null,
        "locality": "LONDON",
        "postalCode": "SW1A 2AQ",
        "country": "England"
    }
]

Miscellaneous ➕

  • Refactored api-tests to solve typescript type error. Looks like it started because of supertest update.

@avaitonis avaitonis changed the title feat: added GET /geospatial/addresses/postcode?postcode=SW1A2AQ endpoint for Ordnance Survey API data feat(DTFS-7052): added GET /geospatial/addresses/postcode?postcode=SW1A2AQ endpoint for Ordnance Survey API data Apr 15, 2024
audrius-vaitonis and others added 4 commits April 25, 2024 14:43
Co-authored-by: oscar-richardson-softwire <116292912+oscar-richardson-softwire@users.noreply.github.com>
…t.ts

Co-authored-by: oscar-richardson-softwire <116292912+oscar-richardson-softwire@users.noreply.github.com>
…t.ts

Co-authored-by: oscar-richardson-softwire <116292912+oscar-richardson-softwire@users.noreply.github.com>
…t.ts

Co-authored-by: oscar-richardson-softwire <116292912+oscar-richardson-softwire@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@oscar-richardson-softwire oscar-richardson-softwire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@abhi-markan abhi-markan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, few comments to address please.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
3.9% Duplication on New Code

See analysis details on SonarCloud

Copy link
Copy Markdown
Contributor

@abhi-markan abhi-markan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants