Package globus.glmap

Class GLMapVectorRelation

All Implemented Interfaces:
GLMapTagsContainer, AutoCloseable

public class GLMapVectorRelation extends GLMapVectorObject
Vector object for a relation, such as a route.

When the map stores them, GLMapVectorObject.point() is an anchor on a member and GLMapVectorObject.getBBox() spans all members; otherwise the relation has only tags. It has no points of its own and GLMapVectorObject.asGeoJSON() writes no geometry.

  • Constructor Details

  • Method Details

    • createFromJSONOrError

      @Deprecated @Nullable public static Object createFromJSONOrError(@Nullable String json)
      Deprecated.
      Save the OSM id and a point instead and find the relation with GLSearch.FindRelationNearPoint, as on iOS. Will be removed in 2.4.0.
      Restores a relation from a GeoJSON feature. A point geometry becomes the anchor; the bbox shrinks to it.
      Parameters:
      json - GeoJSON feature
      Returns:
      GLMapVectorRelation or GLMapError