Class MultiFetchOverpassObjectReader

    • Method Detail

      • genOverpassQuery

        public static String genOverpassQuery​(Collection<? extends PrimitiveId> ids,
                                              boolean includeObjects,
                                              boolean recurseUp,
                                              boolean recurseDownRelations)
        Generate single overpass query to retrieve multiple primitives. Can be used to download parents, children, the objects, or any combination of them.
        Parameters:
        ids - the collection of ids
        includeObjects - if false, don't retrieve the primitives (e.g. only the referrers)
        recurseUp - if true, referrers (parents) of the objects are downloaded and all nodes of parent ways
        recurseDownRelations - true: yes, recurse down to retrieve complete relations
        Returns:
        the overpass query
        Since:
        16611
      • genOverpassQuery

        protected static String genOverpassQuery​(Map<OsmPrimitiveType,​Set<Long>> primitivesMap,
                                                 boolean includeObjects,
                                                 boolean recurseUp,
                                                 boolean recurseDownRelations)
        Generate single overpass query to retrieve multiple primitives. Can be used to download parents, children, the objects, or any combination of them.
        Parameters:
        primitivesMap - map containing the primitives
        includeObjects - if false, don't retrieve the primitives (e.g. only the referrers)
        recurseUp - if true, referrers (parents) of the objects are downloaded and all nodes of parent ways
        recurseDownRelations - true: yes, recurse down to retrieve complete relations
        Returns:
        the overpass query