Closed johachi closed 4 years ago
I think accepting any array of at least 2 numbers would be reasonable since lng, lat are the only arguments required by this function.
Looks good to me.
Thanks! I will wait for @gabzim and hope he will accept the PR soon.
👍 thanks @johachi , was not aware that you could have a third element either @drtyh2o, merging
As mentioned in PR #10, according to RFC 7946
and
In response to above This PR does the following:
2.0.1
.The PR DOES NOT
circleToPolygon
's it's output even if there is an extra third element.circleToPolygon
to accept more than three elements.This closes #10
@gabzim , @drtyh2o Since the specification does technically allow it, would it be a better solution to change validation test of the center coordinate to accept any array as long as the two first elements are valid lng and lat coordinates?