Geo – Path

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.

Ghostprogrammer
  • Ghostprogrammer
  • 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.

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: