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
Some of the Turf APIs we expose have methods that take in position values which makes it easier on developers instead of having to convert Position to Points first. We should make sure all Turf APIs include this functionality.
Currently Point.fromCoordinates() can be used to convert position to point but switching to Position.toPoint() makes more sense to me. Same case doing the reverse, switching from Point to Position currently can be done doing Point.getCoordinates() but would make more sense to call it Point.toPosition() since this is what you are doing.
In any case this works, I just wanted to make sure all the Turf methods have methods like the TurfJoins.inside() to easily pass in Positions.
Some of the Turf APIs we expose have methods that take in position values which makes it easier on developers instead of having to convert Position to Points first. We should make sure all Turf APIs include this functionality.
cc: @zugaldia
The text was updated successfully, but these errors were encountered: