Once you have GeoLocations, you can then make shapes for them. So we create a GeoShape Interface that allows us to define our shape.

We implement a forEach() method to be able to act on each location in the shape, and a getGeoPath() to return us the order of the GeoLocations to make the shape. We will create GeoPath that will represent a collection of GeoLocations that will be used in many of our shapes.

Discover more from GhostProgrammer - Jeff Miller

Subscribe to get the latest posts sent to your email.

By Jeffery Miller

I am known for being able to quickly decipher difficult problems to assist development teams in producing a solution. I have been called upon to be the Team Lead for multiple large-scale projects. I have a keen interest in learning new technologies, always ready for a new challenge.