Skip to content

Commit

Permalink
Improve modeling of bulk geocoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Aug 16, 2024
1 parent 0d94a38 commit 697625b
Show file tree
Hide file tree
Showing 111 changed files with 1,443 additions and 1,071 deletions.
3 changes: 1 addition & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ lib/Model/BaseTraceRequest.php
lib/Model/BicycleCostingOptions.php
lib/Model/BikeNetwork.php
lib/Model/BulkRequest.php
lib/Model/BulkRequestQuery.php
lib/Model/BulkSearchResponse.php
lib/Model/Contour.php
lib/Model/Coordinate.php
Expand Down Expand Up @@ -91,9 +92,7 @@ lib/Model/RouteTrip.php
lib/Model/RoutingResponseWaypoint.php
lib/Model/RoutingWaypoint.php
lib/Model/RoutingWaypointAllOfSearchFilter.php
lib/Model/SearchBulkQuery.php
lib/Model/SearchQuery.php
lib/Model/SearchStructuredBulkQuery.php
lib/Model/SearchStructuredQuery.php
lib/Model/SimpleRoutingWaypoint.php
lib/Model/Speeds.php
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Version 1.2.1 - 2024-08-16

### Fixed

- Improve modeling of bulk geocoding

## Version 1.2.0 - 2024-08-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/GeocodingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/GeospatialApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/RoutingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report = 'PHP SDK (OpenAPI\Client) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 6.6.2' . PHP_EOL;
$report .= ' The version of the OpenAPI document: 6.6.3' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AdminRegion.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Administrative.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AutoCostingOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BaseCostingOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BaseTraceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BicycleCostingOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BikeNetwork.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down
19 changes: 9 additions & 10 deletions lib/Model/BulkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
*
* The version of the OpenAPI document: 6.6.2
* The version of the OpenAPI document: 6.6.3
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* Generator version: 7.7.0
Expand Down Expand Up @@ -43,7 +43,7 @@
*/
class BulkRequest implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = 'endpoint';
public const DISCRIMINATOR = null;

/**
* The original name of the model.
Expand All @@ -59,7 +59,7 @@ class BulkRequest implements ModelInterface, ArrayAccess, \JsonSerializable
*/
protected static $openAPITypes = [
'endpoint' => 'string',
'query' => '\OpenAPI\Client\Model\SearchStructuredQuery'
'query' => '\OpenAPI\Client\Model\BulkRequestQuery'
];

/**
Expand Down Expand Up @@ -235,7 +235,8 @@ public function getModelName()
return self::$openAPIModelName;
}

public const ENDPOINT_V1_SEARCH_STRUCTURED = '/v1/search/structured';
public const ENDPOINT_SEARCH = '/v1/search';
public const ENDPOINT_SEARCH_STRUCTURED = '/v1/search/structured';

/**
* Gets allowable values of the enum
Expand All @@ -245,7 +246,8 @@ public function getModelName()
public function getEndpointAllowableValues()
{
return [
self::ENDPOINT_V1_SEARCH_STRUCTURED,
self::ENDPOINT_SEARCH,
self::ENDPOINT_SEARCH_STRUCTURED,
];
}

Expand All @@ -266,9 +268,6 @@ public function __construct(array $data = null)
{
$this->setIfExists('endpoint', $data ?? [], null);
$this->setIfExists('query', $data ?? [], null);

// Initialize discriminator property with the model name.
$this->container['endpoint'] = static::$openAPIModelName;
}

/**
Expand Down Expand Up @@ -362,7 +361,7 @@ public function setEndpoint($endpoint)
/**
* Gets query
*
* @return \OpenAPI\Client\Model\SearchStructuredQuery|null
* @return \OpenAPI\Client\Model\BulkRequestQuery|null
*/
public function getQuery()
{
Expand All @@ -372,7 +371,7 @@ public function getQuery()
/**
* Sets query
*
* @param \OpenAPI\Client\Model\SearchStructuredQuery|null $query query
* @param \OpenAPI\Client\Model\BulkRequestQuery|null $query query
*
* @return self
*/
Expand Down
Loading

0 comments on commit 697625b

Please sign in to comment.