Something that can be useful at times in being able to calculate the total Area of a circle, especially when plotting it on a map. So, I decided to slightly modify my “Draw a Circle Radius Around Lat/Lng Point” to make it also calculate the Area of the circles and display that value within the TItle of the Circle Shapes Pushpin.
Remember, back in Trig class, it’s fairly simple to calculate the area of a circle. You just Multiply Pi by the Radius Squared.
Area = Pi * (radius * radius)
Anyway, I know this isn’t a very advanced math problem. If fact it’s much simpler than calculating out the point that make up the circle in the first place. However, I thought I’d post it since it may be usefull to someone that maybe doesn’t quite remember this little trick from Trig class.
Here’s the full, modified source code that contains this:
- 01 Jul 2020
- 06 Apr 2020
- 11 Mar 2020
- 15 Feb 2020
- 02 Jan 2020
This site is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. We also participates in affiliate programs with Udemy, and other sites. This site is compensated for referring traffic and business to these companies.