public class OverpassUtil extends Object
| Constructor and Description |
|---|
OverpassUtil()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
cache(BBox
Retrieves data from Overpass API for the specified bounding box and stores it in the file that
cache(BBox) returns.
|
static void |
cache(BBox
Retrieves data from Overpass API for the specified bounding box and stores it in the file that
cache(BBox) returns.
|
static Path |
cacheFile(BBox
Retrieves the path to a cache file in /tmp that is used to cache data from the specified bounding box.
|
static String |
query(BBox
Retrieves the query to the Overpass API for the specified bounding box.
|
public static Stringquery(BBox box)
public static PathcacheFile(BBox box)
public static void cache(BBoxbox) throws MalformedURLException , IOException
cache(BBox) returns. If the cache file already exists, nothing is downloaded.
MalformedURLException
IOException
public static void cache(BBoxbox, boolean forceRefresh) throws MalformedURLException , IOException
cache(BBox) returns. If the cache file already exists, nothing is downloaded.
forceRefresh - whether to delete the cache file if it already exists.
MalformedURLException
IOException