Class MultiFetchServerObjectReader

  • Direct Known Subclasses:
    MultiFetchOverpassObjectReader

    public class MultiFetchServerObjectReader
    extends OsmServerReader
    Retrieves a set of OsmPrimitives from an OSM server using the so called Multi Fetch API.

    Usage:

        MultiFetchServerObjectReader reader = MultiFetchServerObjectReader()
             .append(new Node(72343));
        reader.parseOsm();
        if (!reader.getMissingPrimitives().isEmpty()) {
            Logging.info("There are missing primitives: " + reader.getMissingPrimitives());
        }
        if (!reader.getSkippedWays().isEmpty()) {
           Logging.info("There are skipped ways: " + reader.getMissingPrimitives());
        }