Some of the code assumes the location properties will always have a unit. Specifically the latitude and longitude need to be units and having them only as strings causes problems.
This PR just does a simple check when creating the Location object to guarantee units are assigned.
Some of the code assumes the location properties will always have a unit. Specifically the
latitude
andlongitude
need to be units and having them only as strings causes problems.This PR just does a simple check when creating the
Location
object to guarantee units are assigned.