diff --git a/packages/pulp-cache/README.md b/packages/pulp-cache/README.md index 06f97fd..748754e 100644 --- a/packages/pulp-cache/README.md +++ b/packages/pulp-cache/README.md @@ -26,10 +26,10 @@ use OpenMapsight\PulpCache; $source = Pulp::start() ->pipe(Pulp::srcHttp( - 'GET', - 'https://example.com/data.zip', - ['timeout' => 120], - 'data.zip' + method: 'GET', + uri: 'https://example.com/data.zip', + guzzleOptions: ['timeout' => 120], + aliasFileName: 'data.zip', )); $files = Pulp::start() diff --git a/packages/pulp-datex-energy/README.md b/packages/pulp-datex-energy/README.md index 7d3ce99..858ad05 100644 --- a/packages/pulp-datex-energy/README.md +++ b/packages/pulp-datex-energy/README.md @@ -34,13 +34,13 @@ use OpenMapsight\PulpJSON; $source = Pulp::start() ->pipe(PulpDatexEnergy::srcMobilithek( - $subscriptionId, - $certPath, - $certPassword, - $ifModifiedSince, - 'mobilithek.json', - ['timeout' => 180, 'http_errors' => false], - ['sink' => true, 'successStatuses' => [200, 304]], + subscriptionId: $subscriptionId, + certPath: $certPath, + certPassword: $certPassword, + ifModifiedSince: $ifModifiedSince, + aliasFileName: 'mobilithek.json', + guzzleOptions: ['timeout' => 180, 'http_errors' => false], + options: ['sink' => true, 'successStatuses' => [200, 304]], )); $files = Pulp::start() @@ -51,11 +51,11 @@ $files = Pulp::start() ])) ->pipe(PulpJSON::decodeJSON()) ->pipe(PulpDatexEnergy::sitesGeoJson( - [10.42, 52.18, 10.65, 52.36], - 'https://example.com/open-data-docs', - 'DATEX Energy', - 'https://example.com/open-data-docs', - 'https://example.com/open-data-docs', + bbox: [10.42, 52.18, 10.65, 52.36], + sourceUrl: 'https://example.com/open-data-docs', + sourceName: 'DATEX Energy', + documentationUrl: 'https://example.com/open-data-docs', + publicSourceUrl: 'https://example.com/open-data-docs', )) ->run(); ``` diff --git a/packages/pulp-datex-fuel/README.md b/packages/pulp-datex-fuel/README.md index f5a2b50..521fe5e 100644 --- a/packages/pulp-datex-fuel/README.md +++ b/packages/pulp-datex-fuel/README.md @@ -65,11 +65,11 @@ $files = Pulp::start() 'fallbackToStale' => true, ])) ->pipe(PulpDatexFuel::stationsGeoJson( - [6.05, 50.76, 6.08, 50.82], - 'https://example.com/open-data-docs', - 'DATEX Fuel', - 'https://example.com/open-data-docs', - 'https://example.com/open-data-docs', + bbox: [6.05, 50.76, 6.08, 50.82], + sourceUrl: 'https://example.com/open-data-docs', + sourceName: 'DATEX Fuel', + documentationUrl: 'https://example.com/open-data-docs', + publicSourceUrl: 'https://example.com/open-data-docs', )) ->run(); ``` diff --git a/packages/pulp-datex-roadworks/README.md b/packages/pulp-datex-roadworks/README.md index 83afc1d..df0528e 100644 --- a/packages/pulp-datex-roadworks/README.md +++ b/packages/pulp-datex-roadworks/README.md @@ -38,19 +38,19 @@ use OpenMapsight\PulpJSON; Pulp::start() ->pipe(PulpDatexRoadworks::srcMobilithek( - $subscriptionId, - $certPath, - $certPassword, - $ifModifiedSince, - 'mobilithek.xml', + subscriptionId: $subscriptionId, + certPath: $certPath, + certPassword: $certPassword, + ifModifiedSince: $ifModifiedSince, + aliasFileName: 'mobilithek.xml', )) ->pipe(PulpDatexRoadworks::roadworksGeoJson( - [10.30, 52.12, 10.80, 52.42], - 'https://example.com/open-data-docs', - 'DATEX Roadworks', - 'https://example.com/open-data-docs', - 'https://example.com/open-data-docs', - ['feedKind' => 'ald'], + bbox: [10.30, 52.12, 10.80, 52.42], + sourceUrl: 'https://example.com/open-data-docs', + sourceName: 'DATEX Roadworks', + documentationUrl: 'https://example.com/open-data-docs', + publicSourceUrl: 'https://example.com/open-data-docs', + options: ['feedKind' => 'ald'], )) ->pipe(PulpJSON::encodeJSON(JSON_PRETTY_PRINT)) ->pipe(Pulp::dest(__DIR__ . '/result')) @@ -66,12 +66,12 @@ already-decoded array. Records without a usable point or GML line are dropped. use OpenMapsight\PulpDatexRoadworks; $builder = PulpDatexRoadworks::roadworksBuilder( - [10.30, 52.12, 10.80, 52.42], - 'https://example.com/open-data-docs', - 'DATEX Roadworks', - 'https://example.com/open-data-docs', - 'https://example.com/open-data-docs', - ['feedKind' => 'akd'], + bbox: [10.30, 52.12, 10.80, 52.42], + sourceUrl: 'https://example.com/open-data-docs', + sourceName: 'DATEX Roadworks', + documentationUrl: 'https://example.com/open-data-docs', + publicSourceUrl: 'https://example.com/open-data-docs', + options: ['feedKind' => 'akd'], ); $geoJson = $builder->build($xml); diff --git a/packages/pulp-gtfs/README.md b/packages/pulp-gtfs/README.md index 81567b9..bf9dfeb 100644 --- a/packages/pulp-gtfs/README.md +++ b/packages/pulp-gtfs/README.md @@ -42,22 +42,20 @@ Pulp::start() ->pipe(Pulp::src('.*\.txt', $gtfsDirectory)) ->pipe(Pulp::split( static fn(Pulp $p): Pulp => $p->pipe(PulpGTFS::geoJson( - 'stops', - 'https://example.com/open-data-docs', - [10.42, 52.18, 10.65, 52.36], - null, - 'GTFS', - 'https://example.com/open-data-docs', - 'https://example.com/open-data-docs', + type: 'stops', + sourceUrl: 'https://example.com/open-data-docs', + bbox: [10.42, 52.18, 10.65, 52.36], + sourceName: 'GTFS', + documentationUrl: 'https://example.com/open-data-docs', + publicSourceUrl: 'https://example.com/open-data-docs', )), static fn(Pulp $p): Pulp => $p->pipe(PulpGTFS::geoJson( - 'lines', - 'https://example.com/open-data-docs', - [10.42, 52.18, 10.65, 52.36], - null, - 'GTFS', - 'https://example.com/open-data-docs', - 'https://example.com/open-data-docs', + type: 'lines', + sourceUrl: 'https://example.com/open-data-docs', + bbox: [10.42, 52.18, 10.65, 52.36], + sourceName: 'GTFS', + documentationUrl: 'https://example.com/open-data-docs', + publicSourceUrl: 'https://example.com/open-data-docs', )), )) ->pipe(PulpGeoJSON::calculateBBoxes()) diff --git a/packages/pulp-mobilithek/README.md b/packages/pulp-mobilithek/README.md index 4e709ab..41ab74b 100644 --- a/packages/pulp-mobilithek/README.md +++ b/packages/pulp-mobilithek/README.md @@ -31,13 +31,13 @@ use OpenMapsight\PulpMobilithek; $source = Pulp::start() ->pipe(PulpMobilithek::srcMobilithek( - $subscriptionId, - $certPath, - $certPassword, - $ifModifiedSince, - 'mobilithek.xml', - ['timeout' => 180, 'http_errors' => false], - ['sink' => true, 'successStatuses' => [200, 304]], + subscriptionId: $subscriptionId, + certPath: $certPath, + certPassword: $certPassword, + ifModifiedSince: $ifModifiedSince, + aliasFileName: 'mobilithek.xml', + guzzleOptions: ['timeout' => 180, 'http_errors' => false], + options: ['sink' => true, 'successStatuses' => [200, 304]], )); $files = Pulp::start() diff --git a/packages/pulp/README.md b/packages/pulp/README.md index b340387..a54aba1 100644 --- a/packages/pulp/README.md +++ b/packages/pulp/README.md @@ -103,11 +103,11 @@ Creates one file from an HTTP response body. ```php Pulp::start() ->pipe(Pulp::srcHttp( - 'GET', - 'https://example.com/large.json', - ['timeout' => 180], - 'large.json', - ['sink' => true, 'successStatuses' => [200, 304, 204]] + method: 'GET', + uri: 'https://example.com/large.json', + guzzleOptions: ['timeout' => 180], + aliasFileName: 'large.json', + options: ['sink' => true, 'successStatuses' => [200, 304, 204]], )) ->run(); ```