worth adding:

```
assert size(latitudes) == size(longitudes), "latitudes and longitudes must be lists of exactly the same size"
```

to avoid ugly error messages if this isn't the case?