What is the unit of radius in google maps flutter

Issue

I have some markers and circles in my app but I cannot configure… what is the unit of radius inside google_maps_flutter package.. here is part of my code

Circle circleA = Circle(
  circleId: CircleId("A"),
  center: LatLng(..., ...),
  radius: 4000, what is unit of radius here.. miles or pixels?
);

Solution

I have not used flutter but google map api(s) should follow same standard on all platforms. And basis on this assumption, it should be meter.

https://developers.google.com/maps/documentation/javascript/reference/directions#UnitSystem

Answered By – Sarthak Deshwal

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *