robhogan/dynamodb-geo.js

GeoJSON type is not standard compliant

wyvernzora opened this issue · 1 comments

More specifically, in this line the type of GeoJSON object is set to POINT instead of Point, which some GeoJSON manipulation libraries do not recognize (e.g. turf).

I would suggest that instead of having a [lat,lon] order option, we should have an option to turn on GeoJSON standard compliance vs recreating the logic of original dynamodb-geo.

I will be happy to create a PR in a few days.

Yes, you're right. If you would like to put in a PR to do as you suggest it'd be most welcome.