Skip to content

Commit a5cc284

Browse files
authored
Add no url geojson method (#1155)
1 parent 8cb867f commit a5cc284

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

planetiler-core/src/main/java/com/onthegomap/planetiler/Planetiler.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ public Planetiler addGeoJsonSource(String name, Path defaultPath, String default
460460
() -> GeoJsonReader.process(name, List.of(path), featureGroup, config, profile, stats)));
461461
}
462462

463+
/** Same as {@link #addGeoJsonSource(String, Path, String)} except don't download a remote file. */
464+
public Planetiler addGeoJsonSource(String name, Path defaultPath) {
465+
return addGeoJsonSource(name, defaultPath, null);
466+
}
467+
463468
/**
464469
* Adds a new Natural Earth sqlite file source that will be processed when {@link #run()} is called.
465470
* <p>

0 commit comments

Comments
 (0)