openeventdata / mordecai

Full text geoparsing as a Python library
MIT License
742 stars 97 forks source link

lat and lon as float rather than strings #94

Open chrstnbwnkl opened 3 years ago

chrstnbwnkl commented 3 years ago

I was wondering if there's a reason coordinates are provided as strings rather than floats. Most geospatial libraries for Python require coordinates to be of type float (such as shapely or pysal), also common geospatial data formats such as GeoJSON store coordinates as floats.

As I am usually integrating mordecai with other geospatial libraries, having the coordinates returned as floats would make this integration a tiny bit smoother. :)

ahalterman commented 3 years ago

Thanks for that report! Floats are certainly more useful than strings for lat and lon and I'll change that in the next version. And if you haven't filled out the user survey yet, I'd love to get your thoughts on what else is working or not: https://z0l4ihmu0ud.typeform.com/to/b8FmCfMt