Search code examples
javascriptmapshere-api

HERE maps get circle radius in miles


When I create a circle, the radius is in meters, but I want to get the radius of the circle in miles, is it possible to do that?

I don't want to convert meters to miles with formulas, I want the value of the circle to already be converted when I get the radius

    theCircle.getRadius() = //result should be in miles 
    theCircle.setRadius(/*  value in miles */ );


Solution

  • You can use the setUnitSystem() method.

    Related Document