@stadiamaps/api
Version:
Stadia Maps Geospatial APIs
1 lines • 854 kB
Source Map (JSON)
{"version":3,"file":"stadiamaps-api.mjs","sources":["../src/generated/runtime.ts","../src/generated/models/Access.ts","../src/generated/models/FoursquareAddendum.ts","../src/generated/models/WhosOnFirstConcordances.ts","../src/generated/models/OpenStreetMapAddendum.ts","../src/generated/models/GeonamesAddendum.ts","../src/generated/models/AddendumV2.ts","../src/generated/models/AddressComponentsV2.ts","../src/generated/models/AdminRegion.ts","../src/generated/models/Administrative.ts","../src/generated/models/AnnotationFilters.ts","../src/generated/models/AutoCostingOptions.ts","../src/generated/models/BaseCostingOptions.ts","../src/generated/models/MotorScooterCostingOptions.ts","../src/generated/models/PedestrianType.ts","../src/generated/models/PedestrianCostingOptions.ts","../src/generated/models/TruckCostingOptions.ts","../src/generated/models/BicycleCostingOptions.ts","../src/generated/models/LowSpeedVehicleCostingOptions.ts","../src/generated/models/MotorcycleCostingOptions.ts","../src/generated/models/CostingOptions.ts","../src/generated/models/MapMatchCostingModel.ts","../src/generated/models/DistanceUnit.ts","../src/generated/models/RoutingLanguages.ts","../src/generated/models/MapMatchWaypoint.ts","../src/generated/models/BaseTraceRequest.ts","../src/generated/models/BikeNetwork.ts","../src/generated/models/GeocodingSource.ts","../src/generated/models/GeocodingLayer.ts","../src/generated/models/SearchQuery.ts","../src/generated/models/SearchStructuredQuery.ts","../src/generated/models/BulkRequestQuery.ts","../src/generated/models/BulkRequest.ts","../src/generated/models/GeocodingObject.ts","../src/generated/models/GeoJSONPoint.ts","../src/generated/models/GeocodingGeoJSONPropertiesAddendumOsm.ts","../src/generated/models/GeocodingGeoJSONPropertiesAddendum.ts","../src/generated/models/GeocodingGeoJSONProperties.ts","../src/generated/models/GeocodingGeoJSONFeature.ts","../src/generated/models/GeocodeResponse.ts","../src/generated/models/BulkSearchResponse.ts","../src/generated/models/WofContextComponent.ts","../src/generated/models/WofContext.ts","../src/generated/models/Context.ts","../src/generated/models/Contour.ts","../src/generated/models/Coordinate.ts","../src/generated/models/CostingModel.ts","../src/generated/models/DirectionsOptions.ts","../src/generated/models/EdgeSign.ts","../src/generated/models/EdgeUse.ts","../src/generated/models/Traversability.ts","../src/generated/models/RoadClass.ts","../src/generated/models/IntersectingEdge.ts","../src/generated/models/NodeType.ts","../src/generated/models/EndNode.ts","../src/generated/models/ExtendedDirectionsOptions.ts","../src/generated/models/Point.ts","../src/generated/models/MatchType.ts","../src/generated/models/SourceAttribution.ts","../src/generated/models/Precision.ts","../src/generated/models/FeaturePropertiesV2Properties.ts","../src/generated/models/FeaturePropertiesV2.ts","../src/generated/models/GeoAttributes.ts","../src/generated/models/GeoJSONGeometryBase.ts","../src/generated/models/GeocodingMeta.ts","../src/generated/models/GeocodeResponseEnvelopePropertiesV2.ts","../src/generated/models/HeightRequest.ts","../src/generated/models/HeightResponse.ts","../src/generated/models/HighwayClassification.ts","../src/generated/models/IsochroneCostingModel.ts","../src/generated/models/IsochroneProperties.ts","../src/generated/models/IsochroneFeature.ts","../src/generated/models/IsochroneRequest.ts","../src/generated/models/IsochroneResponse.ts","../src/generated/models/LayerId.ts","../src/generated/models/Speeds.ts","../src/generated/models/NodeId.ts","../src/generated/models/Restrictions.ts","../src/generated/models/LocateDetailedEdge.ts","../src/generated/models/LocateEdgeInfo.ts","../src/generated/models/LocateEdge.ts","../src/generated/models/LocateNode.ts","../src/generated/models/LocateObject.ts","../src/generated/models/ManeuverSignElement.ts","../src/generated/models/ManeuverSign.ts","../src/generated/models/MapMatchTraceOptions.ts","../src/generated/models/MapMatchRequest.ts","../src/generated/models/RoutingResponseWaypoint.ts","../src/generated/models/RouteSummary.ts","../src/generated/models/RoutingLongUnits.ts","../src/generated/models/TravelMode.ts","../src/generated/models/RouteManeuver.ts","../src/generated/models/RouteLeg.ts","../src/generated/models/RouteTrip.ts","../src/generated/models/RouteResponseAlternatesInner.ts","../src/generated/models/MapMatchRouteResponse.ts","../src/generated/models/MatchedPoint.ts","../src/generated/models/MatrixCostingModel.ts","../src/generated/models/MatrixDistance.ts","../src/generated/models/MatrixWaypoint.ts","../src/generated/models/MatrixRequest.ts","../src/generated/models/Warning.ts","../src/generated/models/MatrixResponse.ts","../src/generated/models/NearestRoadsRequest.ts","../src/generated/models/OptimizedRouteRequest.ts","../src/generated/models/OsrmAdmin.ts","../src/generated/models/OsrmSpeedLimit.ts","../src/generated/models/OsrmAnnotation.ts","../src/generated/models/OsrmBannerComponent.ts","../src/generated/models/OsrmGuidanceModifier.ts","../src/generated/models/OsrmBannerContent.ts","../src/generated/models/OsrmBannerInstruction.ts","../src/generated/models/OsrmBaseApiResponse.ts","../src/generated/models/OsrmLane.ts","../src/generated/models/OsrmIntersection.ts","../src/generated/models/OsrmViaWaypoint.ts","../src/generated/models/OsrmStepManeuver.ts","../src/generated/models/OsrmVoiceInstruction.ts","../src/generated/models/OsrmRouteStep.ts","../src/generated/models/OsrmRouteLeg.ts","../src/generated/models/OsrmRoute.ts","../src/generated/models/OsrmWaypoint.ts","../src/generated/models/OsrmRouteResponse.ts","../src/generated/models/PropertiesV2.ts","../src/generated/models/RouteResponse.ts","../src/generated/models/Route200Response.ts","../src/generated/models/RoutingWaypointAllOfSearchFilter.ts","../src/generated/models/RoutingWaypoint.ts","../src/generated/models/RouteRequest.ts","../src/generated/models/SimpleRoutingWaypoint.ts","../src/generated/models/SourceId.ts","../src/generated/models/TraceAttributeKey.ts","../src/generated/models/TraceAttributeFilterOptions.ts","../src/generated/models/TraceEdge.ts","../src/generated/models/TraceAttributesBaseResponse.ts","../src/generated/models/TraceAttributesRequest.ts","../src/generated/models/TraceAttributesResponse.ts","../src/generated/models/TzResponse.ts","../src/generated/apis/GeospatialApi.ts","../src/generated/apis/RoutingApi.ts","../src/generated/apis/GeocodingApi.ts","../src/geocoding.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport const BASE_PATH = \"https://api.stadiamaps.com\".replace(/\\/+$/, \"\");\n\nexport interface ConfigurationParameters {\n basePath?: string; // override base path\n fetchApi?: FetchAPI; // override for fetch implementation\n middleware?: Middleware[]; // middleware to apply before/after fetch requests\n queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings\n username?: string; // parameter for basic security\n password?: string; // parameter for basic security\n apiKey?:\n | string\n | Promise<string>\n | ((name: string) => string | Promise<string>); // parameter for apiKey security\n accessToken?:\n | string\n | Promise<string>\n | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security\n headers?: HTTPHeaders; //header params we want to use on every request\n credentials?: RequestCredentials; //value for the credentials param we want to use on each request\n}\n\nexport class Configuration {\n constructor(private configuration: ConfigurationParameters = {}) {}\n\n set config(configuration: Configuration) {\n this.configuration = configuration;\n }\n\n get basePath(): string {\n return this.configuration.basePath != null\n ? this.configuration.basePath\n : BASE_PATH;\n }\n\n get fetchApi(): FetchAPI | undefined {\n return this.configuration.fetchApi;\n }\n\n get middleware(): Middleware[] {\n return this.configuration.middleware || [];\n }\n\n get queryParamsStringify(): (params: HTTPQuery) => string {\n return this.configuration.queryParamsStringify || querystring;\n }\n\n get username(): string | undefined {\n return this.configuration.username;\n }\n\n get password(): string | undefined {\n return this.configuration.password;\n }\n\n get apiKey(): ((name: string) => string | Promise<string>) | undefined {\n const apiKey = this.configuration.apiKey;\n if (apiKey) {\n return typeof apiKey === \"function\" ? apiKey : () => apiKey;\n }\n return undefined;\n }\n\n get accessToken():\n | ((name?: string, scopes?: string[]) => string | Promise<string>)\n | undefined {\n const accessToken = this.configuration.accessToken;\n if (accessToken) {\n return typeof accessToken === \"function\"\n ? accessToken\n : async () => accessToken;\n }\n return undefined;\n }\n\n get headers(): HTTPHeaders | undefined {\n return this.configuration.headers;\n }\n\n get credentials(): RequestCredentials | undefined {\n return this.configuration.credentials;\n }\n}\n\nexport const DefaultConfig = new Configuration();\n\n/**\n * This is the base class for all generated API classes.\n */\nexport class BaseAPI {\n private static readonly jsonRegex = new RegExp(\n \"^(:?application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(:?;.*)?$\",\n \"i\",\n );\n private middleware: Middleware[];\n\n constructor(protected configuration = DefaultConfig) {\n this.middleware = configuration.middleware;\n }\n\n withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {\n const next = this.clone<T>();\n next.middleware = next.middleware.concat(...middlewares);\n return next;\n }\n\n withPreMiddleware<T extends BaseAPI>(\n this: T,\n ...preMiddlewares: Array<Middleware[\"pre\"]>\n ) {\n const middlewares = preMiddlewares.map((pre) => ({ pre }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n withPostMiddleware<T extends BaseAPI>(\n this: T,\n ...postMiddlewares: Array<Middleware[\"post\"]>\n ) {\n const middlewares = postMiddlewares.map((post) => ({ post }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n protected isJsonMime(mime: string | null | undefined): boolean {\n if (!mime) {\n return false;\n }\n return BaseAPI.jsonRegex.test(mime);\n }\n\n protected async request(\n context: RequestOpts,\n initOverrides?: RequestInit | InitOverrideFunction,\n ): Promise<Response> {\n const { url, init } = await this.createFetchParams(context, initOverrides);\n const response = await this.fetchApi(url, init);\n if (response && response.status >= 200 && response.status < 300) {\n return response;\n }\n throw new ResponseError(response, \"Response returned an error code\");\n }\n\n private async createFetchParams(\n context: RequestOpts,\n initOverrides?: RequestInit | InitOverrideFunction,\n ) {\n let url = this.configuration.basePath + context.path;\n if (\n context.query !== undefined &&\n Object.keys(context.query).length !== 0\n ) {\n // only add the querystring to the URL if there are query parameters.\n // this is done to avoid urls ending with a \"?\" character which buggy webservers\n // do not handle correctly sometimes.\n url += \"?\" + this.configuration.queryParamsStringify(context.query);\n }\n\n const headers = Object.assign(\n {},\n this.configuration.headers,\n context.headers,\n );\n Object.keys(headers).forEach((key) =>\n headers[key] === undefined ? delete headers[key] : {},\n );\n\n const initOverrideFn =\n typeof initOverrides === \"function\"\n ? initOverrides\n : async () => initOverrides;\n\n const initParams = {\n method: context.method,\n headers,\n body: context.body,\n credentials: this.configuration.credentials,\n };\n\n const overriddenInit: RequestInit = {\n ...initParams,\n ...(await initOverrideFn({\n init: initParams,\n context,\n })),\n };\n\n let body: any;\n if (\n isFormData(overriddenInit.body) ||\n overriddenInit.body instanceof URLSearchParams ||\n isBlob(overriddenInit.body)\n ) {\n body = overriddenInit.body;\n } else if (this.isJsonMime(headers[\"Content-Type\"])) {\n body = JSON.stringify(overriddenInit.body);\n } else {\n body = overriddenInit.body;\n }\n\n const init: RequestInit = {\n ...overriddenInit,\n body,\n };\n\n return { url, init };\n }\n\n private fetchApi = async (url: string, init: RequestInit) => {\n let fetchParams = { url, init };\n for (const middleware of this.middleware) {\n if (middleware.pre) {\n fetchParams =\n (await middleware.pre({\n fetch: this.fetchApi,\n ...fetchParams,\n })) || fetchParams;\n }\n }\n let response: Response | undefined = undefined;\n try {\n response = await (this.configuration.fetchApi || fetch)(\n fetchParams.url,\n fetchParams.init,\n );\n } catch (e) {\n for (const middleware of this.middleware) {\n if (middleware.onError) {\n response =\n (await middleware.onError({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n error: e,\n response: response ? response.clone() : undefined,\n })) || response;\n }\n }\n if (response === undefined) {\n if (e instanceof Error) {\n throw new FetchError(\n e,\n \"The request failed and the interceptors did not return an alternative response\",\n );\n } else {\n throw e;\n }\n }\n }\n for (const middleware of this.middleware) {\n if (middleware.post) {\n response =\n (await middleware.post({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n response: response.clone(),\n })) || response;\n }\n }\n return response;\n };\n\n /**\n * Create a shallow clone of `this` by constructing a new instance\n * and then shallow cloning data members.\n */\n private clone<T extends BaseAPI>(this: T): T {\n const constructor = this.constructor as any;\n const next = new constructor(this.configuration);\n next.middleware = this.middleware.slice();\n return next;\n }\n}\n\nfunction isBlob(value: any): value is Blob {\n return typeof Blob !== \"undefined\" && value instanceof Blob;\n}\n\nfunction isFormData(value: any): value is FormData {\n return typeof FormData !== \"undefined\" && value instanceof FormData;\n}\n\nexport class ResponseError extends Error {\n override name: \"ResponseError\" = \"ResponseError\";\n constructor(\n public response: Response,\n msg?: string,\n ) {\n super(msg);\n }\n}\n\nexport class FetchError extends Error {\n override name: \"FetchError\" = \"FetchError\";\n constructor(\n public cause: Error,\n msg?: string,\n ) {\n super(msg);\n }\n}\n\nexport class RequiredError extends Error {\n override name: \"RequiredError\" = \"RequiredError\";\n constructor(\n public field: string,\n msg?: string,\n ) {\n super(msg);\n }\n}\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport type FetchAPI = WindowOrWorkerGlobalScope[\"fetch\"];\n\nexport type Json = any;\nexport type HTTPMethod =\n | \"GET\"\n | \"POST\"\n | \"PUT\"\n | \"PATCH\"\n | \"DELETE\"\n | \"OPTIONS\"\n | \"HEAD\";\nexport type HTTPHeaders = { [key: string]: string };\nexport type HTTPQuery = {\n [key: string]:\n | string\n | number\n | null\n | boolean\n | Array<string | number | null | boolean>\n | Set<string | number | null | boolean>\n | HTTPQuery;\n};\nexport type HTTPBody = Json | FormData | URLSearchParams;\nexport type HTTPRequestInit = {\n headers?: HTTPHeaders;\n method: HTTPMethod;\n credentials?: RequestCredentials;\n body?: HTTPBody;\n};\nexport type ModelPropertyNaming =\n | \"camelCase\"\n | \"snake_case\"\n | \"PascalCase\"\n | \"original\";\n\nexport type InitOverrideFunction = (requestContext: {\n init: HTTPRequestInit;\n context: RequestOpts;\n}) => Promise<RequestInit>;\n\nexport interface FetchParams {\n url: string;\n init: RequestInit;\n}\n\nexport interface RequestOpts {\n path: string;\n method: HTTPMethod;\n headers: HTTPHeaders;\n query?: HTTPQuery;\n body?: HTTPBody;\n}\n\nexport function querystring(params: HTTPQuery, prefix: string = \"\"): string {\n return Object.keys(params)\n .map((key) => querystringSingleKey(key, params[key], prefix))\n .filter((part) => part.length > 0)\n .join(\"&\");\n}\n\nfunction querystringSingleKey(\n key: string,\n value:\n | string\n | number\n | null\n | undefined\n | boolean\n | Array<string | number | null | boolean>\n | Set<string | number | null | boolean>\n | HTTPQuery,\n keyPrefix: string = \"\",\n): string {\n const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);\n if (value instanceof Array) {\n const multiValue = value\n .map((singleValue) => encodeURIComponent(String(singleValue)))\n .join(`&${encodeURIComponent(fullKey)}=`);\n return `${encodeURIComponent(fullKey)}=${multiValue}`;\n }\n if (value instanceof Set) {\n const valueAsArray = Array.from(value);\n return querystringSingleKey(key, valueAsArray, keyPrefix);\n }\n if (value instanceof Date) {\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;\n }\n if (value instanceof Object) {\n return querystring(value as HTTPQuery, fullKey);\n }\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;\n}\n\nexport function exists(json: any, key: string) {\n const value = json[key];\n return value !== null && value !== undefined;\n}\n\nexport function mapValues(data: any, fn: (item: any) => any) {\n const result: { [key: string]: any } = {};\n for (const key of Object.keys(data)) {\n result[key] = fn(data[key]);\n }\n return result;\n}\n\nexport function canConsumeForm(consumes: Consume[]): boolean {\n for (const consume of consumes) {\n if (\"multipart/form-data\" === consume.contentType) {\n return true;\n }\n }\n return false;\n}\n\nexport interface Consume {\n contentType: string;\n}\n\nexport interface RequestContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n}\n\nexport interface ResponseContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n response: Response;\n}\n\nexport interface ErrorContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n error: unknown;\n response?: Response;\n}\n\nexport interface Middleware {\n pre?(context: RequestContext): Promise<FetchParams | void>;\n post?(context: ResponseContext): Promise<Response | void>;\n onError?(context: ErrorContext): Promise<Response | void>;\n}\n\nexport interface ApiResponse<T> {\n raw: Response;\n value(): Promise<T>;\n}\n\nexport interface ResponseTransformer<T> {\n (json: any): T;\n}\n\nexport class JSONApiResponse<T> {\n constructor(\n public raw: Response,\n private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue,\n ) {}\n\n async value(): Promise<T> {\n return this.transformer(await this.raw.json());\n }\n}\n\nexport class VoidApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<void> {\n return undefined;\n }\n}\n\nexport class BlobApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<Blob> {\n return await this.raw.blob();\n }\n}\n\nexport class TextApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<string> {\n return await this.raw.text();\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n *\n * @export\n * @interface Access\n */\nexport interface Access {\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n golfCart?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n wheelchair?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n taxi?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n hOV?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n truck?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n emergency?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n pedestrian?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n car?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n bus?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n bicycle?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n motorcycle?: boolean;\n /**\n *\n * @type {boolean}\n * @memberof Access\n */\n moped?: boolean;\n}\n\n/**\n * Check if a given object implements the Access interface.\n */\nexport function instanceOfAccess(value: object): value is Access {\n return true;\n}\n\nexport function AccessFromJSON(json: any): Access {\n return AccessFromJSONTyped(json, false);\n}\n\nexport function AccessFromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): Access {\n if (json == null) {\n return json;\n }\n return {\n golfCart: json[\"golf_cart\"] == null ? undefined : json[\"golf_cart\"],\n wheelchair: json[\"wheelchair\"] == null ? undefined : json[\"wheelchair\"],\n taxi: json[\"taxi\"] == null ? undefined : json[\"taxi\"],\n hOV: json[\"HOV\"] == null ? undefined : json[\"HOV\"],\n truck: json[\"truck\"] == null ? undefined : json[\"truck\"],\n emergency: json[\"emergency\"] == null ? undefined : json[\"emergency\"],\n pedestrian: json[\"pedestrian\"] == null ? undefined : json[\"pedestrian\"],\n car: json[\"car\"] == null ? undefined : json[\"car\"],\n bus: json[\"bus\"] == null ? undefined : json[\"bus\"],\n bicycle: json[\"bicycle\"] == null ? undefined : json[\"bicycle\"],\n motorcycle: json[\"motorcycle\"] == null ? undefined : json[\"motorcycle\"],\n moped: json[\"moped\"] == null ? undefined : json[\"moped\"],\n };\n}\n\nexport function AccessToJSON(json: any): Access {\n return AccessToJSONTyped(json, false);\n}\n\nexport function AccessToJSONTyped(\n value?: Access | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n golf_cart: value[\"golfCart\"],\n wheelchair: value[\"wheelchair\"],\n taxi: value[\"taxi\"],\n HOV: value[\"hOV\"],\n truck: value[\"truck\"],\n emergency: value[\"emergency\"],\n pedestrian: value[\"pedestrian\"],\n car: value[\"car\"],\n bus: value[\"bus\"],\n bicycle: value[\"bicycle\"],\n motorcycle: value[\"motorcycle\"],\n moped: value[\"moped\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n *\n * @export\n * @interface FoursquareAddendum\n */\nexport interface FoursquareAddendum {\n /**\n *\n * @type {string}\n * @memberof FoursquareAddendum\n */\n tel?: string | null;\n /**\n *\n * @type {string}\n * @memberof FoursquareAddendum\n */\n website?: string | null;\n}\n\n/**\n * Check if a given object implements the FoursquareAddendum interface.\n */\nexport function instanceOfFoursquareAddendum(\n value: object,\n): value is FoursquareAddendum {\n return true;\n}\n\nexport function FoursquareAddendumFromJSON(json: any): FoursquareAddendum {\n return FoursquareAddendumFromJSONTyped(json, false);\n}\n\nexport function FoursquareAddendumFromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): FoursquareAddendum {\n if (json == null) {\n return json;\n }\n return {\n tel: json[\"tel\"] == null ? undefined : json[\"tel\"],\n website: json[\"website\"] == null ? undefined : json[\"website\"],\n };\n}\n\nexport function FoursquareAddendumToJSON(json: any): FoursquareAddendum {\n return FoursquareAddendumToJSONTyped(json, false);\n}\n\nexport function FoursquareAddendumToJSONTyped(\n value?: FoursquareAddendum | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n tel: value[\"tel\"],\n website: value[\"website\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n *\n * @export\n * @interface WhosOnFirstConcordances\n */\nexport interface WhosOnFirstConcordances {\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n eurographicsGiscoId?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n faaCode?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n factualId?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n fifaId?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n fipsCode?: string | null;\n /**\n * An Open Data France EPCI code.\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n frGovEpciCode?: number | null;\n /**\n * Institut national de la statistique et des études économiques (Insee) code\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n fraInseeCode?: number | null;\n /**\n *\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n geonamesId?: number | null;\n /**\n *\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n geoplanetId?: number | null;\n /**\n * A Statoids HASC ID.\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n hascId?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n iataCode?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n icaoCode?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n ituId?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n karmashapesId?: string | null;\n /**\n *\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n naturalEarthId?: number | null;\n /**\n * A Eurostat NUTS 2021 ID\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n nuts2021Id?: string | null;\n /**\n *\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n quattroshapesId?: number | null;\n /**\n * A Quattroshapes Point Gazetteer ID.\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n quattroshapesPgId?: number | null;\n /**\n *\n * @type {number}\n * @memberof WhosOnFirstConcordances\n */\n usCensusGeoId?: number | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n wikidataId?: string | null;\n /**\n *\n * @type {string}\n * @memberof WhosOnFirstConcordances\n */\n wikipediaPage?: string | null;\n}\n\n/**\n * Check if a given object implements the WhosOnFirstConcordances interface.\n */\nexport function instanceOfWhosOnFirstConcordances(\n value: object,\n): value is WhosOnFirstConcordances {\n return true;\n}\n\nexport function WhosOnFirstConcordancesFromJSON(\n json: any,\n): WhosOnFirstConcordances {\n return WhosOnFirstConcordancesFromJSONTyped(json, false);\n}\n\nexport function WhosOnFirstConcordancesFromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): WhosOnFirstConcordances {\n if (json == null) {\n return json;\n }\n return {\n eurographicsGiscoId:\n json[\"eurographics_gisco_id\"] == null\n ? undefined\n : json[\"eurographics_gisco_id\"],\n faaCode: json[\"faa_code\"] == null ? undefined : json[\"faa_code\"],\n factualId: json[\"factual_id\"] == null ? undefined : json[\"factual_id\"],\n fifaId: json[\"fifa_id\"] == null ? undefined : json[\"fifa_id\"],\n fipsCode: json[\"fips_code\"] == null ? undefined : json[\"fips_code\"],\n frGovEpciCode:\n json[\"fr_gov_epci_code\"] == null ? undefined : json[\"fr_gov_epci_code\"],\n fraInseeCode:\n json[\"fra_insee_code\"] == null ? undefined : json[\"fra_insee_code\"],\n geonamesId: json[\"geonames_id\"] == null ? undefined : json[\"geonames_id\"],\n geoplanetId:\n json[\"geoplanet_id\"] == null ? undefined : json[\"geoplanet_id\"],\n hascId: json[\"hasc_id\"] == null ? undefined : json[\"hasc_id\"],\n iataCode: json[\"iata_code\"] == null ? undefined : json[\"iata_code\"],\n icaoCode: json[\"icao_code\"] == null ? undefined : json[\"icao_code\"],\n ituId: json[\"itu_id\"] == null ? undefined : json[\"itu_id\"],\n karmashapesId:\n json[\"karmashapes_id\"] == null ? undefined : json[\"karmashapes_id\"],\n naturalEarthId:\n json[\"natural_earth_id\"] == null ? undefined : json[\"natural_earth_id\"],\n nuts2021Id: json[\"nuts_2021_id\"] == null ? undefined : json[\"nuts_2021_id\"],\n quattroshapesId:\n json[\"quattroshapes_id\"] == null ? undefined : json[\"quattroshapes_id\"],\n quattroshapesPgId:\n json[\"quattroshapes_pg_id\"] == null\n ? undefined\n : json[\"quattroshapes_pg_id\"],\n usCensusGeoId:\n json[\"us_census_geo_id\"] == null ? undefined : json[\"us_census_geo_id\"],\n wikidataId: json[\"wikidata_id\"] == null ? undefined : json[\"wikidata_id\"],\n wikipediaPage:\n json[\"wikipedia_page\"] == null ? undefined : json[\"wikipedia_page\"],\n };\n}\n\nexport function WhosOnFirstConcordancesToJSON(\n json: any,\n): WhosOnFirstConcordances {\n return WhosOnFirstConcordancesToJSONTyped(json, false);\n}\n\nexport function WhosOnFirstConcordancesToJSONTyped(\n value?: WhosOnFirstConcordances | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n eurographics_gisco_id: value[\"eurographicsGiscoId\"],\n faa_code: value[\"faaCode\"],\n factual_id: value[\"factualId\"],\n fifa_id: value[\"fifaId\"],\n fips_code: value[\"fipsCode\"],\n fr_gov_epci_code: value[\"frGovEpciCode\"],\n fra_insee_code: value[\"fraInseeCode\"],\n geonames_id: value[\"geonamesId\"],\n geoplanet_id: value[\"geoplanetId\"],\n hasc_id: value[\"hascId\"],\n iata_code: value[\"iataCode\"],\n icao_code: value[\"icaoCode\"],\n itu_id: value[\"ituId\"],\n karmashapes_id: value[\"karmashapesId\"],\n natural_earth_id: value[\"naturalEarthId\"],\n nuts_2021_id: value[\"nuts2021Id\"],\n quattroshapes_id: value[\"quattroshapesId\"],\n quattroshapes_pg_id: value[\"quattroshapesPgId\"],\n us_census_geo_id: value[\"usCensusGeoId\"],\n wikidata_id: value[\"wikidataId\"],\n wikipedia_page: value[\"wikipediaPage\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n * OpenStreetMap-specific additional fields.\n *\n * These values are exactly as they appear in the associated OSM tag.\n * @export\n * @interface OpenStreetMapAddendum\n */\nexport interface OpenStreetMapAddendum {\n /**\n * The principal brand of goods/services sold at a place,\n * or the common identity for individually owned and operated stores.\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n brand?: string | null;\n /**\n * IATA airport code.\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n iata?: string | null;\n /**\n * ICAO airport code.\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n icao?: string | null;\n /**\n * The opening hours of the place, in the OSM Opening Hours specification.\n *\n * See https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification for details.\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n openingHours?: string | null;\n /**\n * THe company, corp, person, or other entity directly in charge of operating something.\n *\n * This is often used for public transport, hotels, restaurants, and postal services.\n * See https://wiki.openstreetmap.org/wiki/Key:operator for details\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n operator?: string | null;\n /**\n *\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n phone?: string | null;\n /**\n *\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n website?: string | null;\n /**\n * Is this place wheelchair accessible?\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n wheelchair?: string | null;\n /**\n * Wikidata concordance ID.\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n wikidata?: string | null;\n /**\n * Wikipedia concordance ID.\n * @type {string}\n * @memberof OpenStreetMapAddendum\n */\n wikipedia?: string | null;\n}\n\n/**\n * Check if a given object implements the OpenStreetMapAddendum interface.\n */\nexport function instanceOfOpenStreetMapAddendum(\n value: object,\n): value is OpenStreetMapAddendum {\n return true;\n}\n\nexport function OpenStreetMapAddendumFromJSON(\n json: any,\n): OpenStreetMapAddendum {\n return OpenStreetMapAddendumFromJSONTyped(json, false);\n}\n\nexport function OpenStreetMapAddendumFromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): OpenStreetMapAddendum {\n if (json == null) {\n return json;\n }\n return {\n brand: json[\"brand\"] == null ? undefined : json[\"brand\"],\n iata: json[\"iata\"] == null ? undefined : json[\"iata\"],\n icao: json[\"icao\"] == null ? undefined : json[\"icao\"],\n openingHours:\n json[\"opening_hours\"] == null ? undefined : json[\"opening_hours\"],\n operator: json[\"operator\"] == null ? undefined : json[\"operator\"],\n phone: json[\"phone\"] == null ? undefined : json[\"phone\"],\n website: json[\"website\"] == null ? undefined : json[\"website\"],\n wheelchair: json[\"wheelchair\"] == null ? undefined : json[\"wheelchair\"],\n wikidata: json[\"wikidata\"] == null ? undefined : json[\"wikidata\"],\n wikipedia: json[\"wikipedia\"] == null ? undefined : json[\"wikipedia\"],\n };\n}\n\nexport function OpenStreetMapAddendumToJSON(json: any): OpenStreetMapAddendum {\n return OpenStreetMapAddendumToJSONTyped(json, false);\n}\n\nexport function OpenStreetMapAddendumToJSONTyped(\n value?: OpenStreetMapAddendum | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n brand: value[\"brand\"],\n iata: value[\"iata\"],\n icao: value[\"icao\"],\n opening_hours: value[\"openingHours\"],\n operator: value[\"operator\"],\n phone: value[\"phone\"],\n website: value[\"website\"],\n wheelchair: value[\"wheelchair\"],\n wikidata: value[\"wikidata\"],\n wikipedia: value[\"wikipedia\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n *\n * @export\n * @interface GeonamesAddendum\n */\nexport interface GeonamesAddendum {\n /**\n * The GeoNames feature code (for GeoNames results only).\n * @type {string}\n * @memberof GeonamesAddendum\n */\n featureCode: string;\n}\n\n/**\n * Check if a given object implements the GeonamesAddendum interface.\n */\nexport function instanceOfGeonamesAddendum(\n value: object,\n): value is GeonamesAddendum {\n if (!(\"featureCode\" in value) || value[\"featureCode\"] === undefined)\n return false;\n return true;\n}\n\nexport function GeonamesAddendumFromJSON(json: any): GeonamesAddendum {\n return GeonamesAddendumFromJSONTyped(json, false);\n}\n\nexport function GeonamesAddendumFromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): GeonamesAddendum {\n if (json == null) {\n return json;\n }\n return {\n featureCode: json[\"feature_code\"],\n };\n}\n\nexport function GeonamesAddendumToJSON(json: any): GeonamesAddendum {\n return GeonamesAddendumToJSONTyped(json, false);\n}\n\nexport function GeonamesAddendumToJSONTyped(\n value?: GeonamesAddendum | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n feature_code: value[\"featureCode\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\nimport type { FoursquareAddendum } from \"./FoursquareAddendum\";\nimport {\n FoursquareAddendumFromJSON,\n FoursquareAddendumFromJSONTyped,\n FoursquareAddendumToJSON,\n FoursquareAddendumToJSONTyped,\n} from \"./FoursquareAddendum\";\nimport type { WhosOnFirstConcordances } from \"./WhosOnFirstConcordances\";\nimport {\n WhosOnFirstConcordancesFromJSON,\n WhosOnFirstConcordancesFromJSONTyped,\n WhosOnFirstConcordancesToJSON,\n WhosOnFirstConcordancesToJSONTyped,\n} from \"./WhosOnFirstConcordances\";\nimport type { OpenStreetMapAddendum } from \"./OpenStreetMapAddendum\";\nimport {\n OpenStreetMapAddendumFromJSON,\n OpenStreetMapAddendumFromJSONTyped,\n OpenStreetMapAddendumToJSON,\n OpenStreetMapAddendumToJSONTyped,\n} from \"./OpenStreetMapAddendum\";\nimport type { GeonamesAddendum } from \"./GeonamesAddendum\";\nimport {\n GeonamesAddendumFromJSON,\n GeonamesAddendumFromJSONTyped,\n GeonamesAddendumToJSON,\n GeonamesAddendumToJSONTyped,\n} from \"./GeonamesAddendum\";\n\n/**\n * Miscellaneous data that doesn't quite fit anywhere else in the record.\n * @export\n * @interface AddendumV2\n */\nexport interface AddendumV2 {\n /**\n *\n * @type {FoursquareAddendum}\n * @memberof AddendumV2\n */\n foursquare?: FoursquareAddendum | null;\n /**\n *\n * @type {GeonamesAddendum}\n * @memberof AddendumV2\n */\n geonames?: GeonamesAddendum | null;\n /**\n *\n * @type {OpenStreetMapAddendum}\n * @memberof AddendumV2\n */\n osm?: OpenStreetMapAddendum | null;\n /**\n *\n * @type {WhosOnFirstConcordances}\n * @memberof AddendumV2\n */\n whosonfirstConcordances?: WhosOnFirstConcordances | null;\n}\n\n/**\n * Check if a given object implements the AddendumV2 interface.\n */\nexport function instanceOfAddendumV2(value: object): value is AddendumV2 {\n return true;\n}\n\nexport function AddendumV2FromJSON(json: any): AddendumV2 {\n return AddendumV2FromJSONTyped(json, false);\n}\n\nexport function AddendumV2FromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): AddendumV2 {\n if (json == null) {\n return json;\n }\n return {\n foursquare:\n json[\"foursquare\"] == null\n ? undefined\n : FoursquareAddendumFromJSON(json[\"foursquare\"]),\n geonames:\n json[\"geonames\"] == null\n ? undefined\n : GeonamesAddendumFromJSON(json[\"geonames\"]),\n osm:\n json[\"osm\"] == null\n ? undefined\n : OpenStreetMapAddendumFromJSON(json[\"osm\"]),\n whosonfirstConcordances:\n json[\"whosonfirst_concordances\"] == null\n ? undefined\n : WhosOnFirstConcordancesFromJSON(json[\"whosonfirst_concordances\"]),\n };\n}\n\nexport function AddendumV2ToJSON(json: any): AddendumV2 {\n return AddendumV2ToJSONTyped(json, false);\n}\n\nexport function AddendumV2ToJSONTyped(\n value?: AddendumV2 | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n foursquare: FoursquareAddendumToJSON(value[\"foursquare\"]),\n geonames: GeonamesAddendumToJSON(value[\"geonames\"]),\n osm: OpenStreetMapAddendumToJSON(value[\"osm\"]),\n whosonfirst_concordances: WhosOnFirstConcordancesToJSON(\n value[\"whosonfirstConcordances\"],\n ),\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n * Structured address components.\n * @export\n * @interface AddressComponentsV2\n */\nexport interface AddressComponentsV2 {\n /**\n * The cross street address component (rarely used).\n * @type {string}\n * @memberof AddressComponentsV2\n */\n crossStreet?: string | null;\n /**\n * The house / building number.\n *\n * Note that, despite the name, this is not strictly numeric.\n * Values such as 30-1 and 11A may be valid building/house numbers in some areas.\n * @type {string}\n * @memberof AddressComponentsV2\n */\n number?: string | null;\n /**\n * The postal code.\n * @type {string}\n * @memberof AddressComponentsV2\n */\n postalCode?: string | null;\n /**\n * The street component of the address.\n * @type {string}\n * @memberof AddressComponentsV2\n */\n street?: string | null;\n /**\n * The unit number (where available).\n * @type {string}\n * @memberof AddressComponentsV2\n */\n unit?: string | null;\n}\n\n/**\n * Check if a given object implements the AddressComponentsV2 interface.\n */\nexport function instanceOfAddressComponentsV2(\n value: object,\n): value is AddressComponentsV2 {\n return true;\n}\n\nexport function AddressComponentsV2FromJSON(json: any): AddressComponentsV2 {\n return AddressComponentsV2FromJSONTyped(json, false);\n}\n\nexport function AddressComponentsV2FromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): AddressComponentsV2 {\n if (json == null) {\n return json;\n }\n return {\n crossStreet:\n json[\"cross_street\"] == null ? undefined : json[\"cross_street\"],\n number: json[\"number\"] == null ? undefined : json[\"number\"],\n postalCode: json[\"postal_code\"] == null ? undefined : json[\"postal_code\"],\n street: json[\"street\"] == null ? undefined : json[\"street\"],\n unit: json[\"unit\"] == null ? undefined : json[\"unit\"],\n };\n}\n\nexport function AddressComponentsV2ToJSON(json: any): AddressComponentsV2 {\n return AddressComponentsV2ToJSONTyped(json, false);\n}\n\nexport function AddressComponentsV2ToJSONTyped(\n value?: AddressComponentsV2 | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n cross_street: value[\"crossStreet\"],\n number: value[\"number\"],\n postal_code: value[\"postalCode\"],\n street: value[\"street\"],\n unit: value[\"unit\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n *\n * @export\n * @interface AdminRegion\n */\nexport interface AdminRegion {\n /**\n * The [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.\n * @type {string}\n * @memberof AdminRegion\n */\n countryCode?: string;\n /**\n * The country name\n * @type {string}\n * @memberof AdminRegion\n */\n countryText?: string;\n /**\n * The abbreviation code for the state (varies by country).\n * @type {string}\n * @memberof AdminRegion\n */\n stateCode?: string;\n /**\n * The state name.\n * @type {string}\n * @memberof AdminRegion\n */\n stateText?: string;\n}\n\n/**\n * Check if a given object implements the AdminRegion interface.\n */\nexport function instanceOfAdminRegion(value: object): value is AdminRegion {\n return true;\n}\n\nexport function AdminRegionFromJSON(json: any): AdminRegion {\n return AdminRegionFromJSONTyped(json, false);\n}\n\nexport function AdminRegionFromJSONTyped(\n json: any,\n ignoreDiscriminator: boolean,\n): AdminRegion {\n if (json == null) {\n return json;\n }\n return {\n countryCode:\n json[\"country_code\"] == null ? undefined : json[\"country_code\"],\n countryText:\n json[\"country_text\"] == null ? undefined : json[\"country_text\"],\n stateCode: json[\"state_code\"] == null ? undefined : json[\"state_code\"],\n stateText: json[\"state_text\"] == null ? undefined : json[\"state_text\"],\n };\n}\n\nexport function AdminRegionToJSON(json: any): AdminRegion {\n return AdminRegionToJSONTyped(json, false);\n}\n\nexport function AdminRegionToJSONTyped(\n value?: AdminRegion | null,\n ignoreDiscriminator: boolean = false,\n): any {\n if (value == null) {\n return value;\n }\n\n return {\n country_code: value[\"countryCode\"],\n country_text: value[\"countryText\"],\n state_code: value[\"stateCode\"],\n state_text: value[\"stateText\"],\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * Stadia Maps Geospatial APIs\n * The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.\n *\n * The version of the OpenAPI document: 10.0.1\n * Contact: support@stadiamaps.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { mapValues } from \"../runtime\";\n/**\n *\n * @export\n * @interface Administrative\n */\nexport interface Administrative {\n /**\n * The ISO 3166-1 alpha-2 country code of the administrative region.\n * @type {string}\n * @memberof Administrative\n */\n iso31661?: string;\n /**\n * The full country name.\n * @type {string}\n * @memberof Administrative\n */\n country?: string;\n /**\n * The ISO 3166-2 code identifying the principal subdivision (ex: provinces or states) within a country.\n * @type {string}\n * @memberof Administrative\n */\n iso31662?: string;\n /**\n * The full state or province name.\n * @type {string}\n * @memberof Administrative\n */\n state?: string;\n}\n\n/**\n * Check if a given object implements the Administrative interface.\n */\nexport function instanceOfAdministrative(\n value: object,\n