kb0 / maps_toolkit

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

isLocationOnPath set TOLERANCE #21

Closed umitkirtil closed 2 years ago

umitkirtil commented 2 years ago

Hi ,

This is a great port.

But i wonder how can we change the default tolerance value ?

PolygonUtil.isLocationOnPath takes only 3 arguments.

umitkirtil commented 2 years ago

Nvm...

i see it was just a named parameter.

so anyone dumb like me just use like this :

PolygonUtil.isLocationOnPath(LatLng , List<LatLng>,true/false,tolerance: 50) // checks your location 's distance to polyline ( List ) is in the 50 meters.