google-maps-documentation

Data.Geometry interface

google.maps.Data.Geometry interface

A superclass for the various geometry objects.

Methods
forEachLatLng
forEachLatLng(callback)
Parameters: 
  • callbackfunction(LatLng)
Return Value:  None
Repeatedly invokes the given function, passing a point from the geometry to the function on each invocation.
getType
getType()
Parameters:  None
Return Value:  string
Returns the type of the geometry object. Possibilities are "Point", "MultiPoint", "LineString", "MultiLineString", "LinearRing", "Polygon", "MultiPolygon", or "GeometryCollection".