sholybonoly / covid19_edi_app

Edinburgh based covid19 app to coordinate volunteers
0 stars 0 forks source link

PostcodeProcessor.getLatLongFromPostcode function does not return latitude and longitude, it #12

Closed wfastrononomer closed 4 years ago

wfastrononomer commented 4 years ago

This function returns a dictionary of a dictionary, so PostcodeProcessor.getLatLongFromPostcode()['result']['latitude'] gives you the latitude, and similarly for longitude.

We should do a separate function that processes to get this dictionary if it is used elsewhere and then a function that returns latitude and longitude as a tuple, or namedtuple

abeardwalks commented 4 years ago

I've updated the method to be named getLocationFromPostcode, and it now returns a tuple.