The attributes latitude and longitude are nullable JS numbers. The latitude and longitude 0°0'0''.0000 are valid coordinates, but falsy in JS. So we must not use shortcut notations like if (latitude) to check if we have a latitude/longitude, but explicitly check for !== null .
The attributes
latitude
andlongitude
are nullable JS numbers. The latitude and longitude 0°0'0''.0000 are valid coordinates, but falsy in JS. So we must not use shortcut notations likeif (latitude)
to check if we have a latitude/longitude, but explicitly check for!== null
.