clarisma / geodesk-py

Fast and storage-efficient spatial database engine for OpenStreetMap data
https://docs.geodesk.com/python
GNU Lesser General Public License v3.0
36 stars 0 forks source link

Create `Coordinate` objects via `lonlat()` and `latlon()` #10

Closed clarisma closed 9 months ago

clarisma commented 10 months ago

Current form is verbose:

Coordinate(lon=-14.2, lat=37.3)

This is nicer:

lonlat(-14.2, 37.3)

This would also simplify the implementation of functions that take coordinates via lon and lat keyword arguments (e.g. around).

lonlat() and latlon() could also be used to create linestrings and simple polygons, without having to explicitly create and Mercator-project a Shapely geometry.