UNPKG

google-webclient

Version:

this zero-dependency package will provide a swagger-client for google's web-apis, with a working web-demo

1,261 lines 121 kB
{ "basePath": "/", "definitions": { "GeolocationV1Geolocate": { "properties": { "carrier": { "description": "The carrier name.", "type": "string" }, "cellTowers": { "default": [ { "cellId": 0, "locationAreaCode": 123, "mobileCountryCode": 123, "mobileNetworkCode": 123 } ], "description": "An array of cell tower objects.\n\nhttps://developers.google.com/maps/documentation/geolocation/intro#cell_tower_object", "items": { "$ref": "#/definitions/GeolocationV1GeolocateCellTower" }, "type": "array" }, "homeMobileCountryCode": { "description": "The mobile country code (MCC) for the device's home network.", "type": "integer" }, "homeMobileNetworkCode": { "description": "The mobile network code (MNC) for the device's home network.", "type": "integer" }, "radioType": { "description": "The mobile radio type. Supported values are lte, gsm, cdma, and wcdma. While this field is optional, it should be included if a value is available, for more accurate results.", "enum": [ "lte", "gsm", "cdma", "wcdma" ], "type": "string" }, "wifiAccessPoints": { "default": [ { "macAddress": "00:00:00:00:00:00" } ], "description": "An array of WiFi access point objects.\n\nhttps://developers.google.com/maps/documentation/geolocation/intro#wifi_access_point_object", "items": { "$ref": "#/definitions/GeolocationV1GeolocateWifiAccessPoint" }, "type": "array" } }, "x-swgg-tags0": "google-maps" }, "GeolocationV1GeolocateCellTower": { "properties": { "age": { "description": "The number of milliseconds since this cell was primary. If age is 0, the cellId represents a current measurement.", "type": "integer" }, "cellId": { "description": "Unique identifier of the cell. On GSM, this is the Cell ID (CID); CDMA networks use the Base Station ID (BID). WCDMA networks use the UTRAN/GERAN Cell Identity (UC-Id), which is a 32-bit value concatenating the Radio Network Controller (RNC) and Cell ID. Specifying only the 16-bit Cell ID value in WCDMA networks may return inaccurate results.", "type": "integer" }, "locationAreaCode": { "description": "The Location Area Code (LAC) for GSM and WCDMA networks. The Network ID (NID) for CDMA networks.", "type": "integer" }, "mobileCountryCode": { "description": "The cell tower's Mobile Country Code (MCC).", "type": "integer" }, "mobileNetworkCode": { "description": "The cell tower's Mobile Network Code. This is the MNC for GSM and WCDMA; CDMA uses the System ID (SID).", "type": "integer" }, "signalStrength": { "description": "Radio signal strength measured in dBm.", "type": "integer" }, "timingAdvance": { "description": "The timing advance value.\n\nhttps://en.wikipedia.org/wiki/Timing_advance", "type": "integer" } }, "required": [ "cellId", "locationAreaCode", "mobileCountryCode", "mobileNetworkCode" ], "x-swgg-tags0": "google-maps" }, "GeolocationV1GeolocateWifiAccessPoint": { "properties": { "age": { "description": "The number of milliseconds since this access point was detected.", "type": "integer" }, "channel": { "description": "The channel over which the client is communicating with the access point.", "type": "integer" }, "macAddress": { "description": "The MAC address of the WiFi node. Separators must be : (colon).", "type": "string" }, "signalStrength": { "description": "The current signal strength measured in dBm.", "type": "integer" }, "signalToNoiseRatio": { "description": "The current signal to noise ratio measured in dB.", "type": "integer" } }, "required": [ "macAddress" ], "x-swgg-tags0": "google-maps" } }, "externalDocs": { "description": "find out more about google's web-apis", "url": "https://console.developers.google.com/apis/library" }, "info": { "description": "this zero-dependency package will provide a swagger-client for google's web-apis, with a working web-demo", "title": "swgg-google-all", "version": "2018.1.12", "x-swgg-downloadStandaloneApp": "https://kaizhu256.github.io/node-swgg-google-all/build..beta..travis-ci.org/app/assets.app.js", "x-swgg-homepage": "https://github.com/kaizhu256/node-swgg-google-all" }, "parameters": { "google-maps.key": { "default": "xxxxxxxx", "description": "A valid API key to handle requests for this API. If you are using OAuth 2.0 service account credentials (recommended), do not supply this parameter.", "in": "query", "name": "key", "type": "string", "x-swgg-apiKey": true }, "google-maps.language": { "description": "The language in which to return results.\n\nhttps://developers.google.com/maps/faq#languagesupport", "enum": [ "ar", "bg", "bn", "ca", "cs", "da", "de", "el", "en", "en-AU", "en-GB", "es", "eu", "fa", "fi", "fil", "fr", "gl", "gu", "hi", "hr", "hu", "id", "it", "iw", "ja", "kn", "ko", "lt", "lv", "ml", "mr", "nl", "no", "pl", "pt", "pt-BR", "pt-PT", "ro", "ru", "sk", "sl", "sr", "sv", "ta", "te", "th", "tl", "tr", "uk", "vi", "zh-CN", "zh-TW" ], "in": "query", "name": "language", "type": "string", "x-swgg-tags0": "google-maps" }, "google-maps.maxprice": { "description": "Restricts results to only those places within the specified range. Valid values range between 0 (most affordable) to 4 (most expensive), inclusive. The exact amount indicated by a specific value will vary from region to region.", "enum": [ 0, 1, 2, 3, 4 ], "in": "query", "name": "maxprice", "type": "integer", "x-swgg-tags0": "google-maps" }, "google-maps.minprice": { "description": "Restricts results to only those places within the specified range. Valid values range between 0 (most affordable) to 4 (most expensive), inclusive. The exact amount indicated by a specific value will vary from region to region.", "enum": [ 0, 1, 2, 3, 4 ], "in": "query", "name": "minprice", "type": "integer", "x-swgg-tags0": "google-maps" }, "google-maps.region": { "description": "The region code, specified as a ccTLD (\"top-level domain\") two-character value.\n\nhttps://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains", "enum": [ "ac", "ad", "ae", "af", "ag", "ai", "al", "am", "an", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "eh", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mf", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sj", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "su", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tp", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "uk", "um", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "ye", "yt", "za", "zm", "zw" ], "in": "query", "name": "region", "type": "string", "x-swgg-tags0": "google-maps" }, "google-maps.type": { "description": "Restricts the results to places matching the specified type. Only one type may be specified (if more than one type is provided, all types following the first entry are ignored).\n\nhttps://developers.google.com/places/web-service/supported_types", "enum": [ "accounting", "airport", "amusement_park", "aquarium", "art_gallery", "atm", "bakery", "bank", "bar", "beauty_salon", "bicycle_store", "book_store", "bowling_alley", "bus_station", "cafe", "campground", "car_dealer", "car_rental", "car_repair", "car_wash", "casino", "cemetery", "church", "city_hall", "clothing_store", "convenience_store", "courthouse", "dentist", "department_store", "doctor", "electrician", "electronics_store", "embassy", "establishment", "finance", "fire_station", "florist", "food", "funeral_home", "furniture_store", "gas_station", "general_contractor", "grocery_or_supermarket", "gym", "hair_care", "hardware_store", "health", "hindu_temple", "home_goods_store", "hospital", "insurance_agency", "jewelry_store", "laundry", "lawyer", "library", "liquor_store", "local_government_office", "locksmith", "lodging", "meal_delivery", "meal_takeaway", "mosque", "movie_rental", "movie_theater", "moving_company", "museum", "night_club", "painter", "park", "parking", "pet_store", "pharmacy", "physiotherapist", "place_of_worship", "plumber", "police", "post_office", "real_estate_agency", "restaurant", "roofing_contractor", "rv_park", "school", "shoe_store", "shopping_mall", "spa", "stadium", "storage", "store", "subway_station", "synagogue", "taxi_stand", "train_station", "transit_station", "travel_agency", "university", "veterinary_care", "zoo" ], "in": "query", "name": "type", "type": "string", "x-swgg-tags0": "google-maps" }, "google-translate.language": { "description": "https://cloud.google.com/translate/docs/languages", "enum": [ "af", "sq", "am", "ar", "hy", "az", "eu", "be", "bn", "bs", "bg", "ca", "ceb", "zh-CN", "zh-TW", "co", "hr", "cs", "da", "nl", "en", "eo", "et", "fi", "fr", "fy", "gl", "ka", "de", "el", "gu", "ht", "ha", "haw", "iw", "hi", "hmn", "hu", "is", "ig", "id", "ga", "it", "ja", "jw", "kn", "kk", "km", "ko", "ku", "ky", "lo", "la", "lv", "lt", "lb", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mn", "my", "ne", "no", "ny", "ps", "fa", "pl", "pt", "pa", "ro", "ru", "sm", "gd", "sr", "st", "sn", "sd", "si", "sk", "sl", "so", "es", "su", "sw", "sv", "tl", "tg", "ta", "te", "th", "tr", "uk", "ur", "uz", "vi", "cy", "xh", "yi", "yo", "zu" ], "in": "query", "name": "language", "type": "string", "x-swgg-tags0": "google-translate" } }, "paths": { "/$discovery/rest#google-translate": { "get": { "description": "discovery document.", "operationId": "_2F_24discovery_2Frest_23google-translate_20GET", "parameters": [ { "default": "v2", "description": "version", "in": "query", "name": "version", "required": true, "type": "string" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-translate" ], "x-swgg-host": "translation.googleapis.com", "x-swgg-tags0": "google-translate" } }, "/geolocation/v1/geolocate": { "post": { "description": "Geolocation API returns a location and accuracy radius based on information about cell towers and WiFi nodes that the mobile client can detect. This document describes the protocol used to send this data to the server and to return a response to the client.\n\nhttps://developers.google.com/maps/documentation/geolocation/intro", "operationId": "_2Fgeolocation_2Fv1_2Fgeolocate_20POST", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "description": "The request body must be formatted as JSON.", "in": "body", "name": "body", "schema": { "$ref": "#/definitions/GeolocationV1Geolocate" } } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-maps" ], "x-swgg-host": "www.googleapis.com", "x-swgg-tags0": "google-maps" } }, "/language/translate/v2": { "post": { "description": "Method: translate.\nTranslates input text, returning translated text.\n\nhttps://cloud.google.com/translate/docs/reference/translate", "operationId": "_2Flanguage_2Ftranslate_2Fv2_20POST", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "default": "hello world!", "description": "The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.", "in": "query", "name": "q", "required": true, "type": "string" }, { "default": "en", "description": "The language to use for translation of the input text, set to one of the language codes listed in Language Support (https://cloud.google.com/translate/docs/languages).", "in": "query", "name": "target", "required": true, "type": "string", "x-swgg-$ref": "#/parameters/google-translate.language" }, { "description": "The format of the source text, in either HTML (default) or plain-text. A value of html indicates HTML and a value of text indicates plain-text.", "enum": [ "html", "text" ], "in": "query", "name": "format", "type": "string" }, { "description": "The language of the source text, set to one of the language codes listed in Language Support (https://cloud.google.com/translate/docs/languages). If the source language is not specified, the API will attempt to detect the source language automatically and return it within the response.", "in": "query", "name": "source", "type": "string", "x-swgg-$ref": "#/parameters/google-translate.language" }, { "description": "The translation model. Can be either base to use the Phrase-Based Machine Translation (PBMT) model, or nmt to use the Neural Machine Translation (NMT) model. If omitted, then nmt is used.\n\nIf the model is nmt, and the requested language translation pair is not supported for the NMT model, then the request is translated using the base model.", "enum": [ "nmt", "base" ], "in": "query", "name": "model", "type": "string" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-translate" ], "x-swgg-host": "translation.googleapis.com", "x-swgg-tags0": "google-translate" } }, "/language/translate/v2/detect": { "post": { "description": "Method: detect.\nDetects the language of text within a request.\n\nhttps://cloud.google.com/translate/docs/reference/detect", "operationId": "_2Flanguage_2Ftranslate_2Fv2_2Fdetect_20POST", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "collectionFormat": "multi", "default": [ "hello world!", "你好,世界!" ], "description": "The input text upon which to perform language detection. Repeat this parameter to perform language detection on multiple text inputs.", "in": "query", "items": { "type": "string" }, "name": "q", "required": true, "type": "array" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-translate" ], "x-swgg-host": "translation.googleapis.com", "x-swgg-tags0": "google-translate" } }, "/language/translate/v2/languages": { "post": { "description": "Method: languages.\nReturns a list of supported languages for translation.\n\nhttps://cloud.google.com/translate/docs/reference/languages", "operationId": "_2Flanguage_2Ftranslate_2Fv2_2Flanguages_20POST", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "description": "The target language code for the results. If specified, then the language names are returned in the name field of the response, localized in the target language. If you do not supply a target language, then the name field is omitted from the response and only the language codes are returned.", "in": "query", "name": "target", "type": "string", "x-swgg-$ref": "#/parameters/google-translate.language" }, { "description": "The translation model of the supported languages. Can be either base to return languages supported by the Phrase-Based Machine Translation (PBMT) model, or nmt to return languages supported by the Neural Machine Translation (NMT) model. If omitted, then all supported languages are returned.\n\nLanguages supported by the NMT model can only be translated to or from English (en).", "enum": [ "nmt", "base" ], "in": "query", "name": "model", "type": "string" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-translate" ], "x-swgg-host": "translation.googleapis.com", "x-swgg-tags0": "google-translate" } }, "/maps/api/directions/json": { "get": { "description": "Directions API is a service that calculates directions between locations using an HTTP request.\n\nhttps://developers.google.com/maps/documentation/directions/intro", "operationId": "_2Fmaps_2Fapi_2Fdirections_2Fjson_20GET", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "$ref": "#/parameters/google-maps.language" }, { "default": "1600+Amphitheatre+Parkway,+Mountain+View,+CA", "description": "The address, textual latitude/longitude value, or place ID from which you wish to calculate directions.", "in": "query", "name": "origin", "required": true, "type": "string" }, { "default": "37.421,-122.085", "description": "The address, textual latitude/longitude value, or place ID to which you wish to calculate directions. The options for the destination parameter are the same as for the origin parameter, described above.", "in": "query", "name": "destination", "required": true, "type": "string" }, { "default": "driving", "description": "Specifies the mode of transport to use when calculating directions.\n\nhttps://developers.google.com/maps/documentation/directions/intro#TravelModes", "enum": [ "driving", "walking", "bicycling", "transit" ], "in": "query", "name": "mode", "type": "string" }, { "collectionFormat": "pipes", "default": [ "Mountain View, CA", "Las Vegas, NV" ], "description": "Specifies an array of waypoints. Waypoints alter a route by routing it through the specified location(s). A waypoint is specified as a latitude/longitude coordinate, an encoded polyline, a place ID, or an address which will be geocoded. Encoded polylines must be prefixed with enc: and followed by a colon (:). Place IDs must be prefixed with place_id:. The place ID may only be specified if the request includes an API key or a Google Maps APIs Premium Plan client ID. Waypoints are only supported for driving, walking and bicycling directions.\n\nhttps://developers.google.com/maps/documentation/directions/intro#Waypoints", "in": "query", "items": { "type": "string" }, "name": "waypoints", "type": "array" }, { "description": "If set to true, specifies that the Directions service may provide more than one route alternative in the response. Note that providing route alternatives may increase the response time from the server.", "in": "query", "name": "alternatives", "type": "boolean" }, { "collectionFormat": "pipes", "description": "Indicates that the calculated route(s) should avoid the indicated features.\n\nhttps://developers.google.com/maps/documentation/directions/intro#Restrictions", "enum": [ "tolls", "highways", "ferries", "indoor" ], "in": "query", "items": { "type": "string" }, "name": "avoid", "type": "array" }, { "description": "Specifies the unit system to use when displaying results.\n\nhttps://developers.google.com/maps/documentation/directions/intro#UnitSystems", "enum": [ "metric", "imperial" ], "in": "query", "name": "units", "type": "string" }, { "$ref": "#/parameters/google-maps.region" }, { "default": 0, "description": "Specifies the desired time of arrival for transit directions, in seconds since midnight, January 1, 1970 UTC. You can specify either departure_time or arrival_time, but not both. Note that arrival_time must be specified as an integer.", "in": "query", "name": "arrival_time", "type": "integer" }, { "default": "now", "description": "Specifies the desired time of departure. You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC. Alternatively, you can specify a value of now, which sets the departure time to the current time (correct to the nearest second).", "in": "query", "name": "departure_time", "type": "string" }, { "description": "Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration_in_traffic field in the response, which contains the predicted time in traffic based on historical averages. The traffic_model parameter may only be specified for driving directions where the request includes a departure_time, and only if the request includes an API key or a Google Maps APIs Premium Plan client ID.", "enum": [ "best_guess", "pessimistic", "optimistic" ], "in": "query", "name": "traffic_model", "type": "string" }, { "collectionFormat": "pipes", "description": "Specifies one or more preferred modes of transit. This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps APIs Premium Plan client ID.", "enum": [ "bus", "subway", "train", "tram", "rail" ], "in": "query", "items": { "type": "string" }, "name": "transit_mode", "type": "array" }, { "description": "Specifies preferences for transit routes. Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps APIs Premium Plan client ID.", "enum": [ "less_walking", "fewer_transfers" ], "in": "query", "name": "transit_routing_preference", "type": "string" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-maps" ], "x-swgg-host": "maps.googleapis.com", "x-swgg-tags0": "google-maps" } }, "/maps/api/distancematrix/json": { "get": { "description": "Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations.\n\nhttps://developers.google.com/maps/documentation/distance-matrix/intro#DistanceMatrixRequests", "operationId": "_2Fmaps_2Fapi_2Fdistancematrix_2Fjson_20GET", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "$ref": "#/parameters/google-maps.language" }, { "collectionFormat": "pipes", "default": [ "Bobcaygeon+ON", "24+Sussex+Drive+Ottawa+ON", "41.43206,-81.38992", "-33.86748,151.20699", "place_id:ChIJ3S-JXmauEmsRUcIaWtf4MzE", "enc:gfo}EtohhU:" ], "description": "The starting point for calculating travel distance and time. You can supply one or more locations separated by the pipe character (|), in the form of an address, latitude/longitude coordinates, or a place ID", "in": "query", "items": { "type": "string" }, "name": "origins", "required": true, "type": "array" }, { "collectionFormat": "pipes", "default": [ "Bobcaygeon+ON", "24+Sussex+Drive+Ottawa+ON", "41.43206,-81.38992", "-33.86748,151.20699", "place_id:ChIJ3S-JXmauEmsRUcIaWtf4MzE", "enc:gfo}EtohhU:" ], "description": "One or more locations to use as the finishing point for calculating travel distance and time. The options for the destinations parameter are the same as for the origins parameter, described above.", "in": "query", "items": { "type": "string" }, "name": "destinations", "required": true, "type": "array" }, { "default": "driving", "description": "Specifies the mode of transport to use when calculating directions.\n\nhttps://developers.google.com/maps/documentation/directions/intro#TravelModes", "enum": [ "driving", "walking", "bicycling", "transit" ], "in": "query", "name": "mode", "type": "string" }, { "$ref": "#/parameters/google-maps.region" }, { "collectionFormat": "pipes", "description": "Indicates that the calculated route(s) should avoid the indicated features.\n\nhttps://developers.google.com/maps/documentation/directions/intro#Restrictions", "enum": [ "tolls", "highways", "ferries", "indoor" ], "in": "query", "items": { "type": "string" }, "name": "avoid", "type": "array" }, { "description": "Specifies the unit system to use when displaying results.\n\nhttps://developers.google.com/maps/documentation/directions/intro#UnitSystems", "enum": [ "metric", "imperial" ], "in": "query", "name": "units", "type": "string" }, { "default": 0, "description": "Specifies the desired time of arrival for transit directions, in seconds since midnight, January 1, 1970 UTC. You can specify either departure_time or arrival_time, but not both. Note that arrival_time must be specified as an integer.", "in": "query", "name": "arrival_time", "type": "integer" }, { "default": "now", "description": "Specifies the desired time of departure. You can specify the time as an integer in seconds since midnight, January 1, 1970 UTC. Alternatively, you can specify a value of now, which sets the departure time to the current time (correct to the nearest second).", "in": "query", "name": "departure_time", "type": "string" }, { "description": "Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration_in_traffic field in the response, which contains the predicted time in traffic based on historical averages. The traffic_model parameter may only be specified for driving directions where the request includes a departure_time, and only if the request includes an API key or a Google Maps APIs Premium Plan client ID.", "enum": [ "best_guess", "pessimistic", "optimistic" ], "in": "query", "name": "traffic_model", "type": "string" }, { "collectionFormat": "pipes", "description": "Specifies one or more preferred modes of transit. This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps APIs Premium Plan client ID.", "enum": [ "bus", "subway", "train", "tram", "rail" ], "in": "query", "items": { "type": "string" }, "name": "transit_mode", "type": "array" }, { "description": "Specifies preferences for transit routes. Using this parameter, you can bias the options returned, rather than accepting the default best route chosen by the API. This parameter may only be specified for transit directions, and only if the request includes an API key or a Google Maps APIs Premium Plan client ID.", "enum": [ "less_walking", "fewer_transfers" ], "in": "query", "name": "transit_routing_preference", "type": "string" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-maps" ], "x-swgg-host": "maps.googleapis.com", "x-swgg-tags0": "google-maps" } }, "/maps/api/elevation/json#locations.required": { "get": { "description": "Elevation API provides a simple interface to query locations on the earth for elevation data. Additionally, you may request sampled elevation data along paths, allowing you to calculate elevation changes along routes.\n\nhttps://developers.google.com/maps/documentation/elevation/intro", "operationId": "_2Fmaps_2Fapi_2Felevation_2Fjson_23locations.required_20GET", "parameters": [ { "$ref": "#/parameters/google-maps.key" }, { "collectionFormat": "pipes", "default": [ "40.714728,-73.998672", "-34.397,150.644" ], "description": "defines the location(s) on the earth from which to return elevation data. This parameter takes either a single location as a comma-separated {latitude,longitude} pair (e.g. \"40.714728,-73.998672\") or multiple latitude/longitude pairs passed as an array or as an encoded polyline.\n\nhttps://developers.google.com/maps/documentation/elevation/intro#Locations", "in": "query", "items": { "type": "string" }, "name": "locations", "required": true, "type": "array" } ], "responses": { "default": { "description": "default response" } }, "tags": [ "google-maps" ], "x-swgg-host": "maps.googleapis.com", "x-swgg-tags0": "google-maps" } }, "/maps/api/elevati