/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type GeocodingInternationalReverseGeocodeGlobals = { source?: string | undefined; }; export type GeocodingInternationalReverseGeocodeRequest = { /** * The key to use to authenticate to the service. */ key?: string | undefined; /** * The WGS84 latitude coordinate for the search. */ latitude: number; /** * The WGS84 longitude coordinate for the search. */ longitude: number; }; /** @internal */ export type GeocodingInternationalReverseGeocodeRequest$Outbound = { Key?: string | undefined; Latitude: number; Longitude: number; }; /** @internal */ export const GeocodingInternationalReverseGeocodeRequest$outboundSchema: z.ZodType< GeocodingInternationalReverseGeocodeRequest$Outbound, z.ZodTypeDef, GeocodingInternationalReverseGeocodeRequest > = z.object({ key: z.string().optional(), latitude: z.number(), longitude: z.number(), }).transform((v) => { return remap$(v, { key: "Key", latitude: "Latitude", longitude: "Longitude", }); }); export function geocodingInternationalReverseGeocodeRequestToJSON( geocodingInternationalReverseGeocodeRequest: GeocodingInternationalReverseGeocodeRequest, ): string { return JSON.stringify( GeocodingInternationalReverseGeocodeRequest$outboundSchema.parse( geocodingInternationalReverseGeocodeRequest, ), ); }