se701team3 / Forgettable

University of Auckland SOFTENG 701 Team 3 Assignment 1
MIT License
12 stars 44 forks source link

Encounter location input uses Google Maps API to find location #325

Closed hmit106 closed 2 years ago

hmit106 commented 2 years ago

Description

Currently, the location input on the create encounter allows arbitrary input and only stores a string. To make it easier for users to find locations, and to unblock #246, the location input should be autocompleted using the Google Maps API, and should be stored in a format such that the exact location can be used for future calls to the Google Maps API.

If the encounter location isn't in Maps, the location should ideally still be stored as a string, without the Maps location data.

Acceptance Criteria

Implementation details

The manner in which location is stored on the backend may need to be changed to allow a location compatible with the Maps API to be retrieved later.

Google has documentation on how to achieve a similar result here

Testing notes

New tests will need to be created to check if this new functionality works as intended.

Dj5822 commented 2 years ago

Approved.

hmit106 commented 2 years ago

Duplicate of #250