You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to @nmccready and @mvl22, nested properties are now supported. See the tests for an example. Also, bad geometry will throw an error if doThrows.invalidGeometry is set to True. Example.
Passing a single object will return a GeoJSON feature, as opposed to passing an array with one feature, which returns a GeoJSON feature collection (#23).
If you already have GeoJSON data, but you want to extend it with additional properties, you can now use the GeoJSON geometry type (see the README and tests for an example) (#25).
Fixes:
Coordinates passed as strings are now correctly converted to numbers (#24).
parse no longer throws an error if the objects parameter is an empty array. This sort of breaks backwards compatibility, but makes the library more flexible. Thanks to @missinglink for the PR.