kb0 / maps_toolkit

Dart library for area, distance, heading measurements
Apache License 2.0
46 stars 17 forks source link

Change Earth Radius #31

Closed RuyVictor closed 1 week ago

RuyVictor commented 6 months ago

The SphericalUitl & PolygonUtil class contains the incorrect earth radius, change it from 6371009.0 to 6378137.0. The results will be the same as lib javascript V3.

kb0 commented 2 weeks ago

Earth radius 6371009 from Android Maps Utils - https://github.com/googlemaps/android-maps-utils/blob/main/library/src/main/java/com/google/maps/android/MathUtil.java