{"modulePath":"github.com/androidapplicationdev/maps-services-go","version":"v0.0.0-20200130222743-aef6b08443c7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package maps\n\nPackage maps provides a client library for the Google Maps Web Service APIs. Please see [https://developers.google.com/maps/documentation/webservices/](https://developers.google.com/maps/documentation/webservices/) for an overview of the Maps Web Service API suite.\n\n## Constants\n\n```go\nconst (\n\t// GeocodeAccuracyRooftop restricts the results to addresses for which Google has\n\t// location information accurate down to street address precision.\n\tGeocodeAccuracyRooftop = GeocodeAccuracy(\"ROOFTOP\")\n\t// GeocodeAccuracyRangeInterpolated restricts the results to those that reflect an\n\t// approximation interpolated between two precise points.\n\tGeocodeAccuracyRangeInterpolated = GeocodeAccuracy(\"RANGE_INTERPOLATED\")\n\t// GeocodeAccuracyGeometricCenter restricts the results to geometric centers of a\n\t// location such as a polyline or polygon.\n\tGeocodeAccuracyGeometricCenter = GeocodeAccuracy(\"GEOMETRIC_CENTER\")\n\t// GeocodeAccuracyApproximate restricts the results to those that are characterized\n\t// as approximate.\n\tGeocodeAccuracyApproximate = GeocodeAccuracy(\"APPROXIMATE\")\n)\n```\n\n```go\nconst (\n\tFindPlaceFromTextInputTypeTextQuery   = FindPlaceFromTextInputType(\"textquery\")\n\tFindPlaceFromTextInputTypePhoneNumber = FindPlaceFromTextInputType(\"phonenumber\")\n)\n```\nThe types of FindPlaceFromText Input Types.\n\n```go\nconst (\n\tFindPlaceFromTextLocationBiasIP          = FindPlaceFromTextLocationBiasType(\"ipbias\")\n\tFindPlaceFromTextLocationBiasPoint       = FindPlaceFromTextLocationBiasType(\"point\")\n\tFindPlaceFromTextLocationBiasCircular    = FindPlaceFromTextLocationBiasType(\"circle\")\n\tFindPlaceFromTextLocationBiasRectangular = FindPlaceFromTextLocationBiasType(\"rectangle\")\n)\n```\nThe types of FindPlaceFromTextLocationBiasType\n\n```go\nconst (\n\t// SpeedLimitMPH is for requesting speed limits in Miles Per Hour.\n\tSpeedLimitMPH = \"MPH\"\n\t// SpeedLimitKPH is for requesting speed limits in Kilometers Per Hour.\n\tSpeedLimitKPH = \"KPH\"\n)\n```\n\n```go\nconst (\n\t// RoadMap (default) specifies a standard roadmap image, as is normally shown on the\n\t// Google Maps website. If no maptype value is specified, the Google Static Maps API\n\t// serves roadmap tiles by default.\n\tRoadMap MapType = \"roadmap\"\n\t//Satellite specifies a satellite image.\n\tSatellite MapType = \"satellite\"\n\t//Terrain specifies a physical relief map image, showing terrain and vegetation.\n\tTerrain MapType = \"terrain\"\n\t// Hybrid specifies a hybrid of the satellite and roadmap image, showing a\n\t// transparent layer of major streets and place names on the satellite image.\n\tHybrid MapType = \"hybrid\"\n\t//PNG8 or png (default) specifies the 8-bit PNG format.\n\tPNG8 Format = \"png8\"\n\t// PNG32 specifies the 32-bit PNG format.\n\tPNG32 Format = \"png32\"\n\t// GIF specifies the GIF format.\n\tGIF Format = \"gif\"\n\t// JPG specifies the JPEG compression format.\n\tJPG Format = \"jpg\"\n\t// JPGBaseline specifies a non-progressive JPEG compression format.\n\tJPGBaseline Format = \"jpg-baseline\"\n\n\t// Tiny Marker size\n\tTiny MarkerSize = \"tiny\"\n\t// Mid Marker size\n\tMid MarkerSize = \"mid\"\n\t// Small Marker size\n\tSmall MarkerSize = \"small\"\n\n\t// Top Marker anchor position\n\tTop Anchor = \"top\"\n\t// Bottom Marker anchor position\n\tBottom Anchor = \"Bottom\"\n\t// Left Marker anchor position\n\tLeft Anchor = \"left\"\n\t// Right Marker anchor position\n\tRight Anchor = \"right\"\n\t// Center Marker anchor position\n\tCenter Anchor = \"center\"\n\t// Topleft Marker anchor position\n\tTopleft Anchor = \"topleft\"\n\t// Topright Marker anchor position\n\tTopright Anchor = \"topright\"\n\t// Bottomleft Marker anchor position\n\tBottomleft Anchor = \"bottomleft\"\n\t// Bottomright Marker anchor position\n\tBottomright Anchor = \"bottomright\"\n)\n```\n\n```go\nconst (\n\tTravelModeDriving   = Mode(\"driving\")\n\tTravelModeWalking   = Mode(\"walking\")\n\tTravelModeBicycling = Mode(\"bicycling\")\n\tTravelModeTransit   = Mode(\"transit\")\n)\n```\nTravel mode preferences.\n\n```go\nconst (\n\tAvoidTolls    = Avoid(\"tolls\")\n\tAvoidHighways = Avoid(\"highways\")\n\tAvoidFerries  = Avoid(\"ferries\")\n)\n```\nFeatures to avoid.\n\n```go\nconst (\n\tUnitsMetric   = Units(\"metric\")\n\tUnitsImperial = Units(\"imperial\")\n)\n```\nUnits to use on human readable distances.\n\n```go\nconst (\n\tTransitModeBus    = TransitMode(\"bus\")\n\tTransitModeSubway = TransitMode(\"subway\")\n\tTransitModeTrain  = TransitMode(\"train\")\n\tTransitModeTram   = TransitMode(\"tram\")\n\tTransitModeRail   = TransitMode(\"rail\")\n)\n```\nTransit mode of directions or distance matrix request.\n\n```go\nconst (\n\tTransitRoutingPreferenceLessWalking    = TransitRoutingPreference(\"less_walking\")\n\tTransitRoutingPreferenceFewerTransfers = TransitRoutingPreference(\"fewer_transfers\")\n)\n```\nTransit Routing preferences for transit mode requests\n\n```go\nconst (\n\tTrafficModelBestGuess   = TrafficModel(\"best_guess\")\n\tTrafficModelOptimistic  = TrafficModel(\"optimistic\")\n\tTrafficModelPessimistic = TrafficModel(\"pessimistic\")\n)\n```\nTraffic prediction model when requesting future directions.\n\n```go\nconst (\n\tPriceLevelFree          = PriceLevel(\"0\")\n\tPriceLevelInexpensive   = PriceLevel(\"1\")\n\tPriceLevelModerate      = PriceLevel(\"2\")\n\tPriceLevelExpensive     = PriceLevel(\"3\")\n\tPriceLevelVeryExpensive = PriceLevel(\"4\")\n)\n```\nPrice Levels for the Places API\n\n```go\nconst (\n\t// ComponentRoute matches long or short name of a route\n\tComponentRoute = Component(\"route\")\n\t// ComponentLocality matches against both locality and sublocality types\n\tComponentLocality = Component(\"locality\")\n\t// ComponentAdministrativeArea matches all the administrative_area levels\n\tComponentAdministrativeArea = Component(\"administrative_area\")\n\t// ComponentPostalCode matches postal_code and postal_code_prefix\n\tComponentPostalCode = Component(\"postal_code\")\n\t// ComponentCountry matches a country name or a two letter ISO 3166-1 country code\n\tComponentCountry = Component(\"country\")\n)\n```\n\n```go\nconst (\n\tRankByProminence = RankBy(\"prominence\")\n\tRankByDistance   = RankBy(\"distance\")\n)\n```\nRankBy options for Places Search.\n\n```go\nconst (\n\tPlaceTypeAccounting            = PlaceType(\"accounting\")\n\tPlaceTypeAirport               = PlaceType(\"airport\")\n\tPlaceTypeAmusementPark         = PlaceType(\"amusement_park\")\n\tPlaceTypeAquarium              = PlaceType(\"aquarium\")\n\tPlaceTypeArtGallery            = PlaceType(\"art_gallery\")\n\tPlaceTypeAtm                   = PlaceType(\"atm\")\n\tPlaceTypeBakery                = PlaceType(\"bakery\")\n\tPlaceTypeBank                  = PlaceType(\"bank\")\n\tPlaceTypeBar                   = PlaceType(\"bar\")\n\tPlaceTypeBeautySalon           = PlaceType(\"beauty_salon\")\n\tPlaceTypeBicycleStore          = PlaceType(\"bicycle_store\")\n\tPlaceTypeBookStore             = PlaceType(\"book_store\")\n\tPlaceTypeBowlingAlley          = PlaceType(\"bowling_alley\")\n\tPlaceTypeBusStation            = PlaceType(\"bus_station\")\n\tPlaceTypeCafe                  = PlaceType(\"cafe\")\n\tPlaceTypeCampground            = PlaceType(\"campground\")\n\tPlaceTypeCarDealer             = PlaceType(\"car_dealer\")\n\tPlaceTypeCarRental             = PlaceType(\"car_rental\")\n\tPlaceTypeCarRepair             = PlaceType(\"car_repair\")\n\tPlaceTypeCarWash               = PlaceType(\"car_wash\")\n\tPlaceTypeCasino                = PlaceType(\"casino\")\n\tPlaceTypeCemetery              = PlaceType(\"cemetery\")\n\tPlaceTypeChurch                = PlaceType(\"church\")\n\tPlaceTypeCityHall              = PlaceType(\"city_hall\")\n\tPlaceTypeClothingStore         = PlaceType(\"clothing_store\")\n\tPlaceTypeConvenienceStore      = PlaceType(\"convenience_store\")\n\tPlaceTypeCourthouse            = PlaceType(\"courthouse\")\n\tPlaceTypeDentist               = PlaceType(\"dentist\")\n\tPlaceTypeDepartmentStore       = PlaceType(\"department_store\")\n\tPlaceTypeDoctor                = PlaceType(\"doctor\")\n\tPlaceTypeElectrician           = PlaceType(\"electrician\")\n\tPlaceTypeElectronicsStore      = PlaceType(\"electronics_store\")\n\tPlaceTypeEmbassy               = PlaceType(\"embassy\")\n\tPlaceTypeFireStation           = PlaceType(\"fire_station\")\n\tPlaceTypeFlorist               = PlaceType(\"florist\")\n\tPlaceTypeFuneralHome           = PlaceType(\"funeral_home\")\n\tPlaceTypeFurnitureStore        = PlaceType(\"furniture_store\")\n\tPlaceTypeGasStation            = PlaceType(\"gas_station\")\n\tPlaceTypeGym                   = PlaceType(\"gym\")\n\tPlaceTypeHairCare              = PlaceType(\"hair_care\")\n\tPlaceTypeHardwareStore         = PlaceType(\"hardware_store\")\n\tPlaceTypeHinduTemple           = PlaceType(\"hindu_temple\")\n\tPlaceTypeHomeGoodsStore        = PlaceType(\"home_goods_store\")\n\tPlaceTypeHospital              = PlaceType(\"hospital\")\n\tPlaceTypeInsuranceAgency       = PlaceType(\"insurance_agency\")\n\tPlaceTypeJewelryStore          = PlaceType(\"jewelry_store\")\n\tPlaceTypeLaundry               = PlaceType(\"laundry\")\n\tPlaceTypeLawyer                = PlaceType(\"lawyer\")\n\tPlaceTypeLibrary               = PlaceType(\"library\")\n\tPlaceTypeLiquorStore           = PlaceType(\"liquor_store\")\n\tPlaceTypeLocalGovernmentOffice = PlaceType(\"local_government_office\")\n\tPlaceTypeLocksmith             = PlaceType(\"locksmith\")\n\tPlaceTypeLodging               = PlaceType(\"lodging\")\n\tPlaceTypeMealDelivery          = PlaceType(\"meal_delivery\")\n\tPlaceTypeMealTakeaway          = PlaceType(\"meal_takeaway\")\n\tPlaceTypeMosque                = PlaceType(\"mosque\")\n\tPlaceTypeMovieRental           = PlaceType(\"movie_rental\")\n\tPlaceTypeMovieTheater          = PlaceType(\"movie_theater\")\n\tPlaceTypeMovingCompany         = PlaceType(\"moving_company\")\n\tPlaceTypeMuseum                = PlaceType(\"museum\")\n\tPlaceTypeNightClub             = PlaceType(\"night_club\")\n\tPlaceTypePainter               = PlaceType(\"painter\")\n\tPlaceTypePark                  = PlaceType(\"park\")\n\tPlaceTypeParking               = PlaceType(\"parking\")\n\tPlaceTypePetStore              = PlaceType(\"pet_store\")\n\tPlaceTypePharmacy              = PlaceType(\"pharmacy\")\n\tPlaceTypePhysiotherapist       = PlaceType(\"physiotherapist\")\n\tPlaceTypePlumber               = PlaceType(\"plumber\")\n\tPlaceTypePolice                = PlaceType(\"police\")\n\tPlaceTypePostOffice            = PlaceType(\"post_office\")\n\tPlaceTypeRealEstateAgency      = PlaceType(\"real_estate_agency\")\n\tPlaceTypeRestaurant            = PlaceType(\"restaurant\")\n\tPlaceTypeRoofingContractor     = PlaceType(\"roofing_contractor\")\n\tPlaceTypeRvPark                = PlaceType(\"rv_park\")\n\tPlaceTypeSchool                = PlaceType(\"school\")\n\tPlaceTypeShoeStore             = PlaceType(\"shoe_store\")\n\tPlaceTypeShoppingMall          = PlaceType(\"shopping_mall\")\n\tPlaceTypeSpa                   = PlaceType(\"spa\")\n\tPlaceTypeStadium               = PlaceType(\"stadium\")\n\tPlaceTypeStorage               = PlaceType(\"storage\")\n\tPlaceTypeStore                 = PlaceType(\"store\")\n\tPlaceTypeSubwayStation         = PlaceType(\"subway_station\")\n\tPlaceTypeSynagogue             = PlaceType(\"synagogue\")\n\tPlaceTypeTaxiStand             = PlaceType(\"taxi_stand\")\n\tPlaceTypeTrainStation          = PlaceType(\"train_station\")\n\tPlaceTypeTravelAgency          = PlaceType(\"travel_agency\")\n\tPlaceTypeUniversity            = PlaceType(\"university\")\n\tPlaceTypeVeterinaryCare        = PlaceType(\"veterinary_care\")\n\tPlaceTypeZoo                   = PlaceType(\"zoo\")\n)\n```\nPlace Types for the Places API.\n\n```go\nconst (\n\tAutocompletePlaceTypeGeocode       = AutocompletePlaceType(\"geocode\")\n\tAutocompletePlaceTypeAddress       = AutocompletePlaceType(\"address\")\n\tAutocompletePlaceTypeEstablishment = AutocompletePlaceType(\"establishment\")\n\tAutocompletePlaceTypeRegions       = AutocompletePlaceType(\"(regions)\")\n\tAutocompletePlaceTypeCities        = AutocompletePlaceType(\"(cities)\")\n)\n```\n[https://developers.google.com/places/web-service/autocomplete#place\\_types](https://developers.google.com/places/web-service/autocomplete#place_types)\n\n```go\nconst (\n\tPlaceDetailsFieldMaskAddressComponent             = PlaceDetailsFieldMask(\"address_component\")\n\tPlaceDetailsFieldMaskADRAddress                   = PlaceDetailsFieldMask(\"adr_address\")\n\tPlaceDetailsFieldMaskAltID                        = PlaceDetailsFieldMask(\"alt_id\")\n\tPlaceDetailsFieldMaskFormattedAddress             = PlaceDetailsFieldMask(\"formatted_address\")\n\tPlaceDetailsFieldMaskFormattedPhoneNumber         = PlaceDetailsFieldMask(\"formatted_phone_number\")\n\tPlaceDetailsFieldMaskGeometry                     = PlaceDetailsFieldMask(\"geometry\")\n\tPlaceDetailsFieldMaskGeometryLocation             = PlaceDetailsFieldMask(\"geometry/location\")\n\tPlaceDetailsFieldMaskGeometryLocationLat          = PlaceDetailsFieldMask(\"geometry/location/lat\")\n\tPlaceDetailsFieldMaskGeometryLocationLng          = PlaceDetailsFieldMask(\"geometry/location/lng\")\n\tPlaceDetailsFieldMaskGeometryViewport             = PlaceDetailsFieldMask(\"geometry/viewport\")\n\tPlaceDetailsFieldMaskGeometryViewportNortheast    = PlaceDetailsFieldMask(\"geometry/viewport/northeast\")\n\tPlaceDetailsFieldMaskGeometryViewportNortheastLat = PlaceDetailsFieldMask(\"geometry/viewport/northeast/lat\")\n\tPlaceDetailsFieldMaskGeometryViewportNortheastLng = PlaceDetailsFieldMask(\"geometry/viewport/northeast/lng\")\n\tPlaceDetailsFieldMaskGeometryViewportSouthwest    = PlaceDetailsFieldMask(\"geometry/viewport/southwest\")\n\tPlaceDetailsFieldMaskGeometryViewportSouthwestLat = PlaceDetailsFieldMask(\"geometry/viewport/southwest/lat\")\n\tPlaceDetailsFieldMaskGeometryViewportSouthwestLng = PlaceDetailsFieldMask(\"geometry/viewport/southwest/lng\")\n\tPlaceDetailsFieldMaskIcon                         = PlaceDetailsFieldMask(\"icon\")\n\tPlaceDetailsFieldMaskID                           = PlaceDetailsFieldMask(\"id\")\n\tPlaceDetailsFieldMaskInternationalPhoneNumber     = PlaceDetailsFieldMask(\"international_phone_number\")\n\tPlaceDetailsFieldMaskName                         = PlaceDetailsFieldMask(\"name\")\n\tPlaceDetailsFieldMaskOpeningHours                 = PlaceDetailsFieldMask(\"opening_hours\")\n\tPlaceDetailsFieldMaskPermanentlyClosed            = PlaceDetailsFieldMask(\"permanently_closed\")\n\tPlaceDetailsFieldMaskPhotos                       = PlaceDetailsFieldMask(\"photos\")\n\tPlaceDetailsFieldMaskPlaceID                      = PlaceDetailsFieldMask(\"place_id\")\n\tPlaceDetailsFieldMaskPriceLevel                   = PlaceDetailsFieldMask(\"price_level\")\n\tPlaceDetailsFieldMaskRatings                      = PlaceDetailsFieldMask(\"rating\")\n\tPlaceDetailsFieldMaskUserRatingsTotal             = PlaceDetailsFieldMask(\"user_ratings_total\")\n\tPlaceDetailsFieldMaskReviews                      = PlaceDetailsFieldMask(\"reviews\")\n\tPlaceDetailsFieldMaskScope                        = PlaceDetailsFieldMask(\"scope\")\n\tPlaceDetailsFieldMaskTypes                        = PlaceDetailsFieldMask(\"types\")\n\tPlaceDetailsFieldMaskURL                          = PlaceDetailsFieldMask(\"url\")\n\tPlaceDetailsFieldMaskUTCOffset                    = PlaceDetailsFieldMask(\"utc_offset\")\n\tPlaceDetailsFieldMaskVicinity                     = PlaceDetailsFieldMask(\"vicinity\")\n\tPlaceDetailsFieldMaskWebsite                      = PlaceDetailsFieldMask(\"website\")\n)\n```\nThe individual Place Details Field Masks.\n\n```go\nconst (\n\tPlaceSearchFieldMaskAltID                        = PlaceSearchFieldMask(\"alt_id\")\n\tPlaceSearchFieldMaskFormattedAddress             = PlaceSearchFieldMask(\"formatted_address\")\n\tPlaceSearchFieldMaskGeometry                     = PlaceSearchFieldMask(\"geometry\")\n\tPlaceSearchFieldMaskGeometryLocation             = PlaceSearchFieldMask(\"geometry/location\")\n\tPlaceSearchFieldMaskGeometryLocationLat          = PlaceSearchFieldMask(\"geometry/location/lat\")\n\tPlaceSearchFieldMaskGeometryLocationLng          = PlaceSearchFieldMask(\"geometry/location/lng\")\n\tPlaceSearchFieldMaskGeometryViewport             = PlaceSearchFieldMask(\"geometry/viewport\")\n\tPlaceSearchFieldMaskGeometryViewportNortheast    = PlaceSearchFieldMask(\"geometry/viewport/northeast\")\n\tPlaceSearchFieldMaskGeometryViewportNortheastLat = PlaceSearchFieldMask(\"geometry/viewport/northeast/lat\")\n\tPlaceSearchFieldMaskGeometryViewportNortheastLng = PlaceSearchFieldMask(\"geometry/viewport/northeast/lng\")\n\tPlaceSearchFieldMaskGeometryViewportSouthwest    = PlaceSearchFieldMask(\"geometry/viewport/southwest\")\n\tPlaceSearchFieldMaskGeometryViewportSouthwestLat = PlaceSearchFieldMask(\"geometry/viewport/southwest/lat\")\n\tPlaceSearchFieldMaskGeometryViewportSouthwestLng = PlaceSearchFieldMask(\"geometry/viewport/southwest/lng\")\n\tPlaceSearchFieldMaskIcon                         = PlaceSearchFieldMask(\"icon\")\n\tPlaceSearchFieldMaskID                           = PlaceSearchFieldMask(\"id\")\n\tPlaceSearchFieldMaskName                         = PlaceSearchFieldMask(\"name\")\n\tPlaceSearchFieldMaskOpeningHours                 = PlaceSearchFieldMask(\"opening_hours\")\n\tPlaceSearchFieldMaskOpeningHoursOpenNow          = PlaceSearchFieldMask(\"opening_hours/open_now\")\n\tPlaceSearchFieldMaskPermanentlyClosed            = PlaceSearchFieldMask(\"permanently_closed\")\n\tPlaceSearchFieldMaskPhotos                       = PlaceSearchFieldMask(\"photos\")\n\tPlaceSearchFieldMaskPlaceID                      = PlaceSearchFieldMask(\"place_id\")\n\tPlaceSearchFieldMaskPriceLevel                   = PlaceSearchFieldMask(\"price_level\")\n\tPlaceSearchFieldMaskRating                       = PlaceSearchFieldMask(\"rating\")\n\tPlaceSearchFieldMaskUserRatingsTotal             = PlaceSearchFieldMask(\"user_ratings_total\")\n\tPlaceSearchFieldMaskReference                    = PlaceSearchFieldMask(\"reference\")\n\tPlaceSearchFieldMaskTypes                        = PlaceSearchFieldMask(\"types\")\n\tPlaceSearchFieldMaskVicinity                     = PlaceSearchFieldMask(\"vicinity\")\n)\n```\nThe individual Place Search Field Masks.\n\n```go\nconst (\n\tExperienceIdHeaderName = \"X-GOOG-MAPS-EXPERIENCE-ID\"\n)\n```\n\n## Functions\n\n```go\nfunc Encode(path []LatLng) string\n```\nEncode returns a new encoded Polyline from the given path.\n\n## Types\n\n```go\ntype AddressComponent struct {\n\tLongName  string   `json:\"long_name\"`\n\tShortName string   `json:\"short_name\"`\n\tTypes     []string `json:\"types\"`\n}\n```\nAddressComponent is a part of an address\n\n```go\ntype AddressGeometry struct {\n\tLocation     LatLng       `json:\"location\"`\n\tLocationType string       `json:\"location_type\"`\n\tBounds       LatLngBounds `json:\"bounds\"`\n\tViewport     LatLngBounds `json:\"viewport\"`\n\tTypes        []string     `json:\"types\"`\n}\n```\nAddressGeometry is the location of a an address\n\n```go\ntype AddressPlusCode struct {\n\t// GlobalCode is a 4 character area code and 6 character or longer local code (849VCWC8+R9).\n\tGlobalCode string `json:\"global_code\"`\n\t// CompoundCode is a 6 character or longer local code with an explicit location (CWC8+R9, Mountain View, CA, USA).\n\tCompoundCode string `json:\"compound_code\"`\n}\n```\nAddressPlusCode (see [https://en.wikipedia.org/wiki/Open\\_Location\\_Code](https://en.wikipedia.org/wiki/Open_Location_Code) and [https://plus.codes/](https://plus.codes/)) is an encoded location reference, derived from latitude and longitude coordinates, that represents an area: 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller.\n\nPlus codes can be used as a replacement for street addresses in places where they do not exist (where buildings are not numbered or streets are not named). The plus code is formatted as a global code and a compound code: Typically, both the global code and compound code are returned. However, if the result is in a remote location (for example, an ocean or desert) only the global code may be returned.\n\n```go\ntype AltID struct {\n\t// PlaceID is the APP scoped Place ID that you received when you initially created\n\t// this Place, before it was given a Google wide Place ID.\n\tPlaceID string `json:\"place_id,omitempty\"`\n\t// Scope is the scope of this alternative place ID. It will always be APP,\n\t// indicating that the alternative place ID is recognised by your application only.\n\tScope string `json:\"scope,omitempty\"`\n}\n```\nAltID is the alternative place IDs for a place.\n\n```go\ntype Anchor string\n```\nAnchor sets how the icon is placed in relation to the specified markers locations\n\n```go\ntype AutocompleteMatchedSubstring struct {\n\t// Length describes the length of the matched substring.\n\tLength int `json:\"length\"`\n\t// Offset defines the start position of the matched substring.\n\tOffset int `json:\"offset\"`\n}\n```\nAutocompleteMatchedSubstring describes the location of the entered term in the prediction result text, so that the term can be highlighted if desired.\n\n```go\ntype AutocompletePlaceType string\n```\nAutocompletePlaceType restricts Place Autocomplete API to the results to places matching the specified type.\n\n```go\nfunc ParseAutocompletePlaceType(placeType string) (AutocompletePlaceType, error)\n```\nParseAutocompletePlaceType will parse a string representation of a AutocompletePlaceTypes.\n\n```go\ntype AutocompletePrediction struct {\n\t// Description of the matched prediction.\n\tDescription string `json:\"description,omitempty\"`\n\t// DistanceMeters is the straight-line distance from the prediction to the\n\t// Origin if Origin was passed in the Query\n\tDistanceMeters int `json:\"distance_meters,omitempty\"`\n\t// PlaceID is the ID of the Place\n\tPlaceID string `json:\"place_id,omitempty\"`\n\t// Types is an array indicating the type of the address component.\n\tTypes []string `json:\"types,omitempty\"`\n\t// MatchedSubstring describes the location of the entered term in the prediction\n\t// result text, so that the term can be highlighted if desired.\n\tMatchedSubstrings []AutocompleteMatchedSubstring `json:\"matched_substrings,omitempty\"`\n\t// Terms contains an array of terms identifying each section of the returned\n\t// description (a section of the description is generally terminated with a comma).\n\tTerms []AutocompleteTermOffset `json:\"terms,omitempty\"`\n\t// StructuredFormatting contains the main and secondary text of a prediction\n\tStructuredFormatting AutocompleteStructuredFormatting `json:\"structured_formatting,omitempty\"`\n}\n```\nAutocompletePrediction represents a single Query Autocomplete result returned from the Google Places API Web Service.\n\n```go\ntype AutocompleteResponse struct {\n\tPredictions []AutocompletePrediction `json:\"predictions\"`\n}\n```\nAutocompleteResponse is a response to a Query Autocomplete request.\n\n```go\ntype AutocompleteStructuredFormatting struct {\n\tMainText                  string                         `json:\"main_text,omitempty\"`\n\tMainTextMatchedSubstrings []AutocompleteMatchedSubstring `json:\"main_text_matched_substrings,omitempty\"`\n\tSecondaryText             string                         `json:\"secondary_text,omitempty\"`\n}\n```\nAutocompleteStructuredFormatting contains the main and secondary text of an autocomplete prediction\n\n```go\ntype AutocompleteTermOffset struct {\n\t// Value is the text of the matched term.\n\tValue string `json:\"value,omitempty\"`\n\t// Offset defines the start position of this term in the description, measured in\n\t// Unicode characters.\n\tOffset int `json:\"offset\"`\n}\n```\nAutocompleteTermOffset identifies each section of the returned description (a section of the description is generally terminated with a comma).\n\n```go\ntype Avoid string\n```\nAvoid is for specifying routes that avoid certain features.\n\n```go\ntype CellTower struct {\n\t// CellID Unique identifier of the cell\n\tCellID int `json:\"cellId,omitempty\"`\n\t// LocationAreaCode is the Location Area Code (LAC) for GSM and WCDMAnetworks. The\n\t// Network ID (NID) for CDMA networks.\n\tLocationAreaCode int `json:\"locationAreaCode,omitempty\"`\n\t// MobileCountryCode is the cell tower's Mobile Country Code (MCC).\n\tMobileCountryCode int `json:\"mobileCountryCode,omitempty\"`\n\t// MobileNetworkCode is the cell tower's Mobile Network Code. This is the MNC for\n\t// GSM and WCDMA; CDMA uses the System ID (SID).\n\tMobileNetworkCode int `json:\"mobileNetworkCode,omitempty\"`\n\t// Age is the number of milliseconds since this cell was primary. If age is 0, the\n\t// cellId represents a current measurement.\n\tAge int `json:\"age,omitempty\"`\n\t// SignalStrength is the radio signal strength measured in dBm.\n\tSignalStrength int `json:\"signalStrength,omitempty\"`\n\t// TimingAdvance is the timing advance value. Please see\n\t// https://en.wikipedia.org/wiki/Timing_advance for more detail.\n\tTimingAdvance int `json:\"timingAdvance,omitempty\"`\n}\n```\nCellTower is a cell tower object for localisation requests\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient may be used to make requests to the Google Maps WebService APIs\n\n```go\nfunc NewClient(options ...ClientOption) (*Client, error)\n```\nNewClient constructs a new Client which can make requests to the Google Maps WebService APIs.\n\n```go\nfunc (c *Client) Directions(ctx context.Context, r *DirectionsRequest) ([]Route, []GeocodedWaypoint, error)\n```\nDirections issues the Directions request and retrieves the Response\n\n```go\nfunc (c *Client) DistanceMatrix(ctx context.Context, r *DistanceMatrixRequest) (*DistanceMatrixResponse, error)\n```\nDistanceMatrix makes a Distance Matrix API request\n\n```go\nfunc (c *Client) Elevation(ctx context.Context, r *ElevationRequest) ([]ElevationResult, error)\n```\nElevation makes an Elevation API request\n\n```go\nfunc (c *Client) FindPlaceFromText(ctx context.Context, r *FindPlaceFromTextRequest) (FindPlaceFromTextResponse, error)\n```\nFindPlaceFromText takes a text input, and returns a place. The text input can be any kind of Places data, for example, a name, address, or phone number.\n\n```go\nfunc (c *Client) Geocode(ctx context.Context, r *GeocodingRequest) ([]GeocodingResult, error)\n```\nGeocode makes a Geocoding API request\n\n```go\nfunc (c *Client) Geolocate(ctx context.Context, r *GeolocationRequest) (*GeolocationResult, error)\n```\nGeolocate makes a Geolocation API request\n\n```go\nfunc (c *Client) NearbySearch(ctx context.Context, r *NearbySearchRequest) (PlacesSearchResponse, error)\n```\nNearbySearch lets you search for places within a specified area. You can refine your search request by supplying keywords or specifying the type of place you are searching for.\n\n```go\nfunc (c *Client) NearestRoads(ctx context.Context, r *NearestRoadsRequest) (*NearestRoadsResponse, error)\n```\nNearestRoads makes a Nearest Roads API request\n\n```go\nfunc (c *Client) PlaceAutocomplete(ctx context.Context, r *PlaceAutocompleteRequest) (AutocompleteResponse, error)\n```\nPlaceAutocomplete issues the Places API Place Autocomplete request and retrieves the response\n\n```go\nfunc (c *Client) PlaceDetails(ctx context.Context, r *PlaceDetailsRequest) (PlaceDetailsResult, error)\n```\nPlaceDetails issues the Places API Place Details request and retrieves the response\n\n```go\nfunc (c *Client) PlacePhoto(ctx context.Context, r *PlacePhotoRequest) (PlacePhotoResponse, error)\n```\nPlacePhoto issues the Places API Photo request and retrieves the response\n\n```go\nfunc (c *Client) QueryAutocomplete(ctx context.Context, r *QueryAutocompleteRequest) (AutocompleteResponse, error)\n```\nQueryAutocomplete issues the Places API Query Autocomplete request and retrieves the response\n\n```go\nfunc (c *Client) ReverseGeocode(ctx context.Context, r *GeocodingRequest) ([]GeocodingResult, error)\n```\nReverseGeocode makes a Reverse Geocoding API request\n\n```go\nfunc (c *Client) SnapToRoad(ctx context.Context, r *SnapToRoadRequest) (*SnapToRoadResponse, error)\n```\nSnapToRoad makes a Snap to Road API request\n\n```go\nfunc (c *Client) SpeedLimits(ctx context.Context, r *SpeedLimitsRequest) (*SpeedLimitsResponse, error)\n```\nSpeedLimits makes a Speed Limits API request\n\n```go\nfunc (c *Client) StaticMap(ctx context.Context, r *StaticMapRequest) (image.Image, error)\n```\nStaticMap makes a StaticMap API request.\n\n```go\nfunc (c *Client) TextSearch(ctx context.Context, r *TextSearchRequest) (PlacesSearchResponse, error)\n```\nTextSearch issues the Places API Text Search request and retrieves the Response\n\n```go\nfunc (c *Client) Timezone(ctx context.Context, r *TimezoneRequest) (*TimezoneResult, error)\n```\nTimezone makes a Timezone API request\n\n```go\ntype ClientOption func(*Client) error\n```\nClientOption is the type of constructor options for NewClient(...).\n\n```go\nfunc WithAPIKey(apiKey string) ClientOption\n```\nWithAPIKey configures a Maps API client with an API Key\n\n```go\nfunc WithAPIKeyAndSignature(apiKey, signature string) ClientOption\n```\nWithAPIKeyAndSignature configures a Maps API client with an API Key and signature. The signature is assumed to be URL modified Base64 encoded.\n\n```go\nfunc WithBaseURL(baseURL string) ClientOption\n```\nWithBaseURL configures a Maps API client with a custom base url\n\n```go\nfunc WithChannel(channel string) ClientOption\n```\nWithChannel configures a Maps API client with a Channel\n\n```go\nfunc WithClientIDAndSignature(clientID, signature string) ClientOption\n```\nWithClientIDAndSignature configures a Maps API client for a Maps for Work application. The signature is assumed to be URL modified Base64 encoded.\n\n```go\nfunc WithExperienceId(ids ...string) ClientOption\n```\nWithExperienceId configures the client with an initial experience id that can be changed with the \\`setExperienceId\\` method.\n\n```go\nfunc WithHTTPClient(c *http.Client) ClientOption\n```\nWithHTTPClient configures a Maps API client with a http.Client to make requests over.\n\n```go\nfunc WithRateLimit(requestsPerSecond int) ClientOption\n```\nWithRateLimit configures the rate limit for back end requests. Default is to limit to 50 requests per second. A value of zero disables rate limiting.\n\n```go\ntype Component string\n```\nComponent specifies a key for the parts of a structured address. See [https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering](https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering) for more detail.\n\n```go\ntype CustomIcon struct {\n\t// IconURL is th icon URL\n\tIconURL string\n\t// Anchor sets how the icon is placed in relation to the specified markers locations\n\tAnchor Anchor\n\t// Scale is the custom icon scale\n\tScale int\n}\n```\nCustomIcon replace the default Map Pin\n\n```go\nfunc (c CustomIcon) String() string\n```\n\n```go\ntype DirectionsRequest struct {\n\t// Origin is the address or textual latitude/longitude value from which you wish to\n\t// calculate directions. Required.\n\tOrigin string\n\t// Destination is the address or textual latitude/longitude value from which you\n\t// wish to calculate directions. Required.\n\tDestination string\n\t// Mode specifies the mode of transport to use when calculating directions.\n\t// Optional.\n\tMode Mode\n\t// DepartureTime specifies the desired time of departure. You can specify the time\n\t// as an integer in seconds since midnight, January 1, 1970 UTC. Alternatively, you\n\t// can specify a value of `\"now\"`. Optional.\n\tDepartureTime string\n\t// ArrivalTime specifies the desired time of arrival for transit directions, in\n\t// seconds since midnight, January 1, 1970 UTC. Optional. You cannot specify both\n\t// `DepartureTime` and `ArrivalTime`.\n\tArrivalTime string\n\t// Waypoints specifies an array of points to add to a route. Optional.\n\tWaypoints []string\n\t// Alternatives specifies if Directions service may provide more than one route\n\t// alternative in the response. Optional.\n\tAlternatives bool\n\t// Optimize allow the Directions service to optimize the provided route by\n\t// rearranging the waypoints in a more efficient order. Optional.\n\tOptimize bool\n\t// Avoid indicates that the calculated route(s) should avoid the indicated\n\t// features. Optional.\n\tAvoid []Avoid\n\t// Language specifies the language in which to return results. Optional.\n\tLanguage string\n\t// Units specifies the unit system to use when displaying results. Optional.\n\tUnits Units\n\t// Region specifies the region code, specified as a ccTLD two-character value.\n\t// Optional.\n\tRegion string\n\t// TransitMode specifies one or more preferred modes of transit. This parameter\n\t// may only be specified for transit directions. Optional.\n\tTransitMode []TransitMode\n\t// TransitRoutingPreference specifies preferences for transit routes. Optional.\n\tTransitRoutingPreference TransitRoutingPreference\n\t// TrafficModel specifies traffic prediction model when requesting future\n\t// directions. Optional.\n\tTrafficModel TrafficModel\n}\n```\nDirectionsRequest is the functional options struct for directions.Get\n\n```go\ntype Distance struct {\n\t// HumanReadable is the human friendly distance. This is rounded and in an\n\t// appropriate unit for the request. The units can be overriden with a request\n\t// parameter.\n\tHumanReadable string `json:\"text\"`\n\t// Meters is the numeric distance, always in meters. This is intended to be used\n\t// only in algorithmic situations, e.g. sorting results by some user specified\n\t// metric.\n\tMeters int `json:\"value\"`\n}\n```\nDistance is the API representation for a distance between two points.\n\n```go\ntype DistanceMatrixElement struct {\n\tStatus string `json:\"status\"`\n\t// Duration is the length of time it takes to travel this route.\n\tDuration time.Duration `json:\"duration\"`\n\t// DurationInTraffic is the length of time it takes to travel this route\n\t// considering traffic.\n\tDurationInTraffic time.Duration `json:\"duration_in_traffic\"`\n\t// Distance is the total distance of this route.\n\tDistance Distance `json:\"distance\"`\n}\n```\nDistanceMatrixElement is the travel distance and time for a pair of origin and destination.\n\n```go\nfunc (dme *DistanceMatrixElement) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for DistanceMatrixElement. This encodes Go types back to the API representation.\n\n```go\nfunc (dme *DistanceMatrixElement) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler for DistanceMatrixElement. This decodes the API representation into types useful for Go developers.\n\n```go\ntype DistanceMatrixElementsRow struct {\n\tElements []*DistanceMatrixElement `json:\"elements\"`\n}\n```\nDistanceMatrixElementsRow is a row of distance elements.\n\n```go\ntype DistanceMatrixRequest struct {\n\t// Origins is a list of addresses and/or textual latitude/longitude values\n\t// from which to calculate distance and time. Required.\n\tOrigins []string\n\t// Destinations is a list of addresses and/or textual latitude/longitude values\n\t// to which to calculate distance and time. Required.\n\tDestinations []string\n\t// Mode specifies the mode of transport to use when calculating distance.\n\t// Valid values are `ModeDriving`, `ModeWalking`, `ModeBicycling`\n\t// and `ModeTransit`. Optional.\n\tMode Mode\n\t// Language in which to return results. Optional.\n\tLanguage string\n\t// Avoid introduces restrictions to the route. Valid values are `AvoidTolls`,\n\t// `AvoidHighways` and `AvoidFerries`. Optional.\n\tAvoid Avoid\n\t// Units Specifies the unit system to use when expressing distance as text.\n\t// Valid values are `UnitsMetric` and `UnitsImperial`. Optional.\n\tUnits Units\n\t// DepartureTime is the desired time of departure. You can specify the time as\n\t// an integer in seconds since midnight, January 1, 1970 UTC. Alternatively,\n\t// you can specify a value of `\"now\"``. Optional.\n\tDepartureTime string\n\t// ArrivalTime specifies the desired time of arrival for transit requests,\n\t// in seconds since midnight, January 1, 1970 UTC. You cannot specify\n\t// both `DepartureTime` and `ArrivalTime`. Optional.\n\tArrivalTime string\n\t// TrafficModel determines the type of model that will be used when determining\n\t// travel time when using depature times in the future. Options are\n\t// `TrafficModelBestGuess`, `TrafficModelOptimistic`` or `TrafficModelPessimistic`.\n\t// Optional. Default is `TrafficModelBestGuess``\n\tTrafficModel TrafficModel\n\t// TransitMode specifies one or more preferred modes of transit. This parameter\n\t// may only be specified for requests where the mode is `transit`. Valid values\n\t// are `TransitModeBus`, `TransitModeSubway`, `TransitModeTrain`, `TransitModeTram`,\n\t// and `TransitModeRail`. Optional.\n\tTransitMode []TransitMode\n\t// TransitRoutingPreference Specifies preferences for transit requests. Valid\n\t// values are `TransitRoutingPreferenceLessWalking` and\n\t// `TransitRoutingPreferenceFewerTransfers`. Optional.\n\tTransitRoutingPreference TransitRoutingPreference\n}\n```\nDistanceMatrixRequest is the request struct for Distance Matrix APi\n\n```go\ntype DistanceMatrixResponse struct {\n\n\t// OriginAddresses contains an array of addresses as returned by the API from\n\t// your original request.\n\tOriginAddresses []string `json:\"origin_addresses\"`\n\t// DestinationAddresses contains an array of addresses as returned by the API\n\t// from your original request.\n\tDestinationAddresses []string `json:\"destination_addresses\"`\n\t// Rows contains an array of elements.\n\tRows []DistanceMatrixElementsRow `json:\"rows\"`\n}\n```\nDistanceMatrixResponse represents a Distance Matrix API response.\n\n```go\ntype ElevationRequest struct {\n\t// Locations defines the location(s) on the earth from which to return elevation\n\t// data.\n\tLocations []LatLng\n\t// Path defines a path on the earth for which to return elevation data.\n\tPath []LatLng\n\t// Samples specifies the number of sample points along a path for which to return\n\t// elevation data. Required if Path is supplied.\n\tSamples int\n}\n```\nElevationRequest is the request structure for Elevation API. Either Locations or Path must be set.\n\n```go\ntype ElevationResult struct {\n\t// Location is the position for which elevation data is being computed.\n\tLocation *LatLng `json:\"location\"`\n\t// Elevation indicates the elevation of the location in meters\n\tElevation float64 `json:\"elevation\"`\n\t// Resolution indicates the maximum distance between data points from which the\n\t// elevation was interpolated, in meters.\n\tResolution float64 `json:\"resolution\"`\n}\n```\nElevationResult is a single elevation at a specific location\n\n```go\ntype Fare struct {\n\t// Currency is an ISO 4217 currency code indicating the currency that the amount\n\t// is expressed in.\n\tCurrency string `json:\"currency\"`\n\n\t// Value is the total fare amount, in the currency specified above.\n\tValue float64 `json:\"value\"`\n\n\t// Text is the total fare amount, formatted in the requested language.\n\tText string `json:\"text\"`\n}\n```\nFare represents the total fare for a route.\n\n```go\ntype FindPlaceFromTextInputType string\n```\nFindPlaceFromTextInputType is the different types of inputs.\n\n```go\ntype FindPlaceFromTextLocationBiasType string\n```\nFindPlaceFromTextLocationBiasType is the type of location bias for this request\n\n```go\nfunc ParseFindPlaceFromTextLocationBiasType(locationBias string) (FindPlaceFromTextLocationBiasType, error)\n```\nParseFindPlaceFromTextLocationBiasType will parse a string to a FindPlaceFromTextLocationBiasType\n\n```go\ntype FindPlaceFromTextRequest struct {\n\t// The text input specifying which place to search for (for example, a name,\n\t// address, or phone number). Required.\n\tInput string\n\n\t// The type of input. Required.\n\tInputType FindPlaceFromTextInputType\n\n\t// Fields allows you to select which parts of the returned details structure\n\t// should be filled in.\n\tFields []PlaceSearchFieldMask\n\n\t// LocationBias is the type of location bias to apply to this request\n\tLocationBias FindPlaceFromTextLocationBiasType\n\n\t// LocationBiasPoint is the point for LocationBias type Point\n\tLocationBiasPoint *LatLng\n\n\t// LocationBiasCenter is the center for LocationBias type Circle\n\tLocationBiasCenter *LatLng\n\n\t// LocationBiasRadius is the radius for LocationBias type Circle\n\tLocationBiasRadius int\n\n\t// LocationBiasSouthWest is the South West boundary for LocationBias type Rectangle\n\tLocationBiasSouthWest *LatLng\n\n\t// LocationBiasSouthWest is the North East boundary for LocationBias type Rectangle\n\tLocationBiasNorthEast *LatLng\n}\n```\nFindPlaceFromTextRequest is the options struct for Find Place From Text API\n\n```go\ntype FindPlaceFromTextResponse struct {\n\tCandidates       []PlacesSearchResult\n\tHTMLAttributions []string\n}\n```\nFindPlaceFromTextResponse is a response to the Find Place From Text request\n\n```go\ntype Format string\n```\nFormat defines the format of the resulting image\n\n```go\ntype GeocodeAccuracy string\n```\nGeocodeAccuracy is the type of a location result from the Geocoding API.\n\n```go\ntype GeocodedWaypoint struct {\n\t// GeocoderStatus indicates the status code resulting from the geocoding operation.\n\t// This field may contain the following values.\n\tGeocoderStatus string `json:\"geocoder_status\"`\n\t// PartialMatch indicates that the geocoder did not return an exact match for the\n\t// original request, though it was able to match part of the requested address.\n\tPartialMatch bool `json:\"partial_match\"`\n\t// PlaceID is a unique identifier that can be used with other Google APIs.\n\tPlaceID string `json:\"place_id\"`\n\t// Types indicates the address type of the geocoding result used for calculating\n\t// directions.\n\tTypes []string `json:\"types\"`\n}\n```\nGeocodedWaypoint represents the geocoded point for origin, supplied waypoints, or destination for a requested direction request.\n\n```go\ntype GeocodingRequest struct {\n\n\t// Address is the street address that you want to geocode, in the format used by\n\t// the national postal service of the country concerned.\n\tAddress string\n\t// Components is a component filter for which you wish to obtain a geocode. Either\n\t// Address or Components is required in a geocoding request. For more detail on\n\t// Component Filtering please see\n\t// https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering\n\tComponents map[Component]string\n\t// Bounds is the bounding box of the viewport within which to bias geocode results\n\t// more prominently. Optional.\n\tBounds *LatLngBounds\n\t// Region is the region code, specified as a ccTLD two-character value. Optional.\n\tRegion string\n\n\t// LatLng is the textual latitude/longitude value for which you wish to obtain the\n\t// closest, human-readable address. Either LatLng or PlaceID is required for\n\t// Reverse Geocoding.\n\tLatLng *LatLng\n\t// ResultType is an array of one or more address types. Optional.\n\tResultType []string\n\t// LocationType is an array of one or more geocoding accuracy types. Optional.\n\tLocationType []GeocodeAccuracy\n\t// PlaceID is a string which contains the place_id, which can be used for reverse\n\t// geocoding requests. Either LatLng or PlaceID is required for Reverse Geocoding.\n\tPlaceID string\n\n\t// Language is the language in which to return results. Optional.\n\tLanguage string\n\n\t// Custom allows passing through custom parameters to the Geocoding back end.\n\t// Use with caution. For more detail on why this is required, please see\n\t// https://googlegeodevelopers.blogspot.com/2016/11/address-geocoding-in-google-maps-apis.html\n\tCustom url.Values\n}\n```\nGeocodingRequest is the request structure for Geocoding API\n\n```go\ntype GeocodingResult struct {\n\tAddressComponents []AddressComponent `json:\"address_components\"`\n\tFormattedAddress  string             `json:\"formatted_address\"`\n\tGeometry          AddressGeometry    `json:\"geometry\"`\n\tTypes             []string           `json:\"types\"`\n\tPlaceID           string             `json:\"place_id\"`\n\n\t// PartialMatch indicates that the geocoder did not return an exact match for\n\t// the original request, though it was able to match part of the requested address.\n\t// You may wish to examine the original request for misspellings and/or an incomplete address.\n\t// Partial matches most often occur for street addresses that do not exist within the\n\t// locality you pass in the request.\n\t// Partial matches may also be returned when a request matches two or more locations in\n\t// the same locality. For example, \"21 Henr St, Bristol, UK\" will return a partial match\n\t// for both Henry Street and Henrietta Street.\n\t// Note that if a request includes a misspelled address component, the geocoding service may\n\t// suggest an alternative address.\n\t// Suggestions triggered in this way will also be marked as a partial match.\n\tPartialMatch bool `json:\"partial_match\"`\n\n\t// PlusCode (see https://en.wikipedia.org/wiki/Open_Location_Code and https://plus.codes/)\n\t// is an encoded location reference, derived from latitude and longitude coordinates,\n\t// that represents an area: 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator)\n\t// or smaller.\n\t//\n\t// Plus codes can be used as a replacement for street addresses in places where they do not exist\n\t// (where buildings are not numbered or streets are not named).\n\t// The plus code is formatted as a global code and a compound code:\n\t// Typically, both the global code and compound code are returned.\n\t// However, if the result is in a remote location (for example, an ocean or desert)\n\t// only the global code may be returned.\n\tPlusCode AddressPlusCode `json:\"plus_code\"`\n}\n```\nGeocodingResult is a single geocoded address\n\n```go\ntype GeolocationError struct {\n\t// Errors lists errors that occurred\n\tErrors []struct {\n\t\tDomain string\n\t\t// Reason is an identifier for the error\n\t\tReason string\n\t\t// Message is a short description of the error\n\t\tMessage string\n\t}\n\t// Code is the error code (same as HTTP response)\n\tCode int\n\t// Message is a short description of the error\n\tMessage string\n}\n```\nGeolocationError is an error object reporting a request error\n\n```go\ntype GeolocationRequest struct {\n\t// HomeMobileCountryCode is the mobile country code (MCC) for the device's home\n\t// network.\n\tHomeMobileCountryCode int `json:\"homeMobileCountryCode,omitempty\"`\n\t// HomeMobileNetworkCode is the mobile network code (MNC) for the device's home\n\t// network.\n\tHomeMobileNetworkCode int `json:\"homeMobileNetworkCode,omitempty\"`\n\t// RadioType is the mobile radio type, this is optional but should be included if\n\t// available\n\tRadioType RadioType `json:\"radioType,omitempty\"`\n\t// Carrier is the carrier name\n\tCarrier string `json:\"carrier,omitempty\"`\n\t// ConsiderIP Specifies whether to fall back to IP geolocation if wifi and cell\n\t// tower signals are not available.\n\tConsiderIP bool `json:\"considerIp\"`\n\t// CellTowers is an array of CellTower objects.\n\tCellTowers []CellTower `json:\"cellTowers,omitempty\"`\n\t// WifiAccessPoints is an array of WifiAccessPoint objects.\n\tWiFiAccessPoints []WiFiAccessPoint `json:\"wifiAccessPoints,omitempty\"`\n}\n```\nGeolocationRequest is the request structure for Geolocation API All fields are optional\n\n```go\ntype GeolocationResult struct {\n\t// Location is the predicted location\n\tLocation LatLng\n\t// Accuracy is the accuracy of the provided location in meters\n\tAccuracy float64\n}\n```\nGeolocationResult is an approximate location and accuracy\n\n```go\ntype LatLng struct {\n\tLat float64 `json:\"lat\"`\n\tLng float64 `json:\"lng\"`\n}\n```\nLatLng represents a location on the Earth.\n\n```go\nfunc DecodePolyline(poly string) ([]LatLng, error)\n```\nDecodePolyline converts a polyline encoded string to an array of LatLng objects.\n\n```go\nfunc ParseLatLng(location string) (LatLng, error)\n```\nParseLatLng will parse a string representation of a Lat,Lng pair.\n\n```go\nfunc ParseLatLngList(locations string) ([]LatLng, error)\n```\nParseLatLngList will parse a string of | separated Lat,Lng pairs.\n\n```go\nfunc (l *LatLng) AlmostEqual(other *LatLng, epsilon float64) bool\n```\nAlmostEqual returns whether this LatLng is almost equal (below epsilon) to the other LatLng.\n\n```go\nfunc (l *LatLng) String() string\n```\n\n```go\ntype LatLngBounds struct {\n\tNorthEast LatLng `json:\"northeast\"`\n\tSouthWest LatLng `json:\"southwest\"`\n}\n```\nLatLngBounds represents a bounded square area on the Earth.\n\n```go\nfunc (b *LatLngBounds) String() string\n```\n\n```go\ntype Leg struct {\n\t// Steps contains an array of steps denoting information about each separate step\n\t// of the leg of the journey.\n\tSteps []*Step `json:\"steps\"`\n\n\t// Distance indicates the total distance covered by this leg.\n\tDistance `json:\"distance\"`\n\n\t// Duration indicates total time required for this leg.\n\tDuration time.Duration `json:\"duration\"`\n\n\t// DurationInTraffic indicates the total duration of this leg. This value is an\n\t// estimate of the time in traffic based on current and historical traffic\n\t// conditions.\n\tDurationInTraffic time.Duration `json:\"duration_in_traffic\"`\n\n\t// ArrivalTime contains the estimated time of arrival for this leg. This property\n\t// is only returned for transit directions.\n\tArrivalTime time.Time `json:\"arrival_time\"`\n\n\t// DepartureTime contains the estimated time of departure for this leg. This\n\t// property is only returned for transit directions.\n\tDepartureTime time.Time `json:\"departure_time\"`\n\n\t// StartLocation contains the latitude/longitude coordinates of the origin of this\n\t// leg.\n\tStartLocation LatLng `json:\"start_location\"`\n\n\t// EndLocation contains the latitude/longitude coordinates of the destination of\n\t// this leg.\n\tEndLocation LatLng `json:\"end_location\"`\n\n\t// StartAddress contains the human-readable address (typically a street address)\n\t// reflecting the start location of this leg.\n\tStartAddress string `json:\"start_address\"`\n\n\t// EndAddress contains the human-readable address (typically a street address)\n\t// reflecting the end location of this leg.\n\tEndAddress string `json:\"end_address\"`\n\n\t// ViaWaypoint contains info about points through which the route was laid.\n\tViaWaypoint []*ViaWaypoint `json:\"via_waypoint\"`\n}\n```\nLeg represents a single leg of a route.\n\n```go\nfunc (leg *Leg) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for Leg. This encodes Go types back to the API representation.\n\n```go\nfunc (leg *Leg) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler for Leg. This decodes the API representation into types useful for Go developers.\n\n```go\ntype MapType string\n```\nMapType (optional) defines the type of map to construct. There are several possible maptype values, including roadmap, satellite, hybrid, and terrain\n\n```go\ntype Marker struct {\n\t// Color specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color\n\t// from the set {black, brown, green, purple, yellow, blue, gray, orange, red,\n\t// white}.\n\tColor string\n\t// Label specifies a single uppercase alphanumeric character from the set {A-Z, 0-9}\n\tLabel string\n\t// MarkerSize specifies the size of marker from the set {tiny, mid, small}\n\tSize string\n\t// CustomIcon replace the default Map Pin\n\tCustomIcon CustomIcon\n\t// Location is the Marker position\n\tLocation []LatLng\n\t// LocationAddress is the Marker position as a postal address or other geocodable location.\n\tLocationAddress string\n}\n```\nMarker is a Map pin\n\n```go\nfunc (m Marker) String() string\n```\n\n```go\ntype MarkerSize string\n```\nMarkerSize specifies the size of marker from the set {tiny, mid, small}\n\n```go\ntype Mode string\n```\nMode is for specifying travel mode.\n\n```go\ntype NearbySearchRequest struct {\n\t// Location is the latitude/longitude around which to retrieve place information.\n\t// If you specify a location parameter, you must also specify a radius parameter.\n\tLocation *LatLng\n\t// Radius defines the distance (in meters) within which to bias place results. The\n\t//maximum allowed radius is 50,000 meters. Results inside of this region will be\n\t//ranked higher than results outside of the search circle; however, prominent\n\t// results from outside of the search radius may be included.\n\tRadius uint\n\t// Keyword is a term to be matched against all content that Google has indexed for\n\t// this place, including but not limited to name, type, and address, as well as\n\t// customer reviews and other third-party content.\n\tKeyword string\n\t// Language specifies the language in which to return results. Optional.\n\tLanguage string\n\t// MinPrice restricts results to only those places within the specified price level.\n\t// Valid values are in the range from 0 (most affordable) to 4 (most expensive),\n\t// inclusive.\n\tMinPrice PriceLevel\n\t// MaxPrice restricts results to only those places within the specified price level.\n\t// Valid values are in the range from 0 (most affordable) to 4 (most expensive),\n\t// inclusive.\n\tMaxPrice PriceLevel\n\t// Name is one or more terms to be matched against the names of places, separated\n\t// with a space character.\n\tName string\n\t// OpenNow returns only those places that are open for business at the time the\n\t// query is sent. Places that do not specify opening hours in the Google Places\n\t// database will not be returned if you include this parameter in your query.\n\tOpenNow bool\n\t// RankBy specifies the order in which results are listed.\n\tRankBy\n\t// Type restricts the results to places matching the specified type.\n\tType PlaceType\n\t// PageToken returns the next 20 results from a previously run search. Setting a\n\t// PageToken parameter will execute a search with the same parameters used\n\t// previously — all parameters other than PageToken will be ignored.\n\tPageToken string\n}\n```\nNearbySearchRequest is the functional options struct for NearbySearch\n\n```go\ntype NearestRoadsRequest struct {\n\t// Points is the list of points to be snapped.\n\tPoints []LatLng\n}\n```\nNearestRoadsRequest is the request structure for the Nearest Roads API.\n\n```go\ntype NearestRoadsResponse struct {\n\tSnappedPoints []SnappedPoint `json:\"snappedPoints\"`\n}\n```\nNearestRoadsResponse is an array of snapped points.\n\n```go\ntype OpeningHours struct {\n\t// OpenNow is a boolean value indicating if the place is open at the current time.\n\t// Please note, this field will be null if it isn't present in the response.\n\tOpenNow *bool `json:\"open_now,omitempty\"`\n\t// Periods is an array of opening periods covering seven days, starting from Sunday,\n\t// in chronological order.\n\tPeriods []OpeningHoursPeriod `json:\"periods,omitempty\"`\n\t// weekdayText is an array of seven strings representing the formatted opening hours\n\t// for each day of the week, for example \"Monday: 8:30 am – 5:30 pm\".\n\tWeekdayText []string `json:\"weekday_text,omitempty\"`\n\t// PermanentlyClosed indicates that the place has permanently shut down. Please\n\t// note, this field will be null if it isn't present in the response.\n\tPermanentlyClosed *bool `json:\"permanently_closed,omitempty\"`\n}\n```\nOpeningHours describes the opening hours for a Place Details result.\n\n```go\ntype OpeningHoursOpenClose struct {\n\t// Day is a number from 0–6, corresponding to the days of the week, starting on\n\t// Sunday. For example, 2 means Tuesday.\n\tDay time.Weekday `json:\"day\"`\n\t// Time contains a time of day in 24-hour hhmm format. Values are in the range\n\t// 0000–2359. The time will be reported in the place’s time zone.\n\tTime string `json:\"time\"`\n}\n```\nOpeningHoursOpenClose describes when the place is open.\n\n```go\ntype OpeningHoursPeriod struct {\n\t// Open is when the place opens.\n\tOpen OpeningHoursOpenClose `json:\"open\"`\n\t// Close is when the place closes.\n\tClose OpeningHoursOpenClose `json:\"close\"`\n}\n```\nOpeningHoursPeriod is a single OpeningHours day describing when the place opens and closes.\n\n```go\ntype Path struct {\n\t// Weight (optional) specifies the thickness of the path in pixels.\n\tWeight int\n\t// Color (optional) specifies a color in HEX\n\tColor string\n\t// Fillcolor (optional) indicates both that the path marks off a polygonal area and\n\t// specifies the fill color to use as an overlay within that area.\n\tFillColor string\n\t// Geodesic (optional) indicates that the requested path should be interpreted as a\n\t// geodesic line that follows the curvature of the earth.\n\tGeodesic bool\n\t// Location two or more connected points to overlay on the image at specified\n\t// locations\n\tLocation []LatLng\n}\n```\nPath defines a single path of two or more connected points to overlay on the image at specified locations\n\n```go\nfunc (p Path) String() string\n```\n\n```go\ntype Photo struct {\n\t// PhotoReference is used to identify the photo when you perform a Photo request.\n\tPhotoReference string `json:\"photo_reference\"`\n\t// Height is the maximum height of the image.\n\tHeight int `json:\"height\"`\n\t// Width is the maximum width of the image.\n\tWidth int `json:\"width\"`\n\t// htmlAttributions contains any required attributions.\n\tHTMLAttributions []string `json:\"html_attributions\"`\n}\n```\nPhoto describes a photo available with a Search Result.\n\n```go\ntype PlaceAutocompleteRequest struct {\n\t// Input is the text string on which to search. The Places service will return\n\t// candidate matches based on this string and order results based on their perceived\n\t// relevance.\n\tInput string\n\t// Offset is the character position in the input term at which the service uses text\n\t// for predictions. For example, if the input is 'Googl' and the completion point is\n\t// 3, the service will match on 'Goo'. The offset should generally be set to the\n\t// position of the text caret. If no offset is supplied, the service will use the\n\t// entire term.\n\tOffset uint\n\t// Location is the point around which you wish to retrieve place information.\n\tLocation *LatLng\n\t// Origin is the point from which to calculate the straight-line distance to the\n\t// destination (returned as distance_meters).\n\tOrigin *LatLng\n\t// Radius is the distance (in meters) within which to return place results. Note\n\t// that setting a radius biases results to the indicated area, but may not fully\n\t// restrict results to the specified area.\n\tRadius uint\n\t// Language is the language in which to return results.\n\tLanguage string\n\t// Type restricts the results to places matching the specified type.\n\tTypes AutocompletePlaceType\n\t// Components is a grouping of places to which you would like to restrict your\n\t// results. Currently, you can use components to filter by country.\n\tComponents map[Component][]string\n\t// StrictBounds return only those places that are strictly within the region defined\n\t// by location and radius.\n\tStrictBounds bool\n\t// SessionToken is a token that means you will get charged by autocomplete session\n\t// instead of by character for Autocomplete\n\tSessionToken PlaceAutocompleteSessionToken\n}\n```\nPlaceAutocompleteRequest is the functional options struct for Place Autocomplete\n\n```go\ntype PlaceAutocompleteSessionToken uuid.UUID\n```\nPlaceAutocompleteSessionToken is a session token for Place Autocomplete.\n\n```go\nfunc NewPlaceAutocompleteSessionToken() PlaceAutocompleteSessionToken\n```\nNewPlaceAutocompleteSessionToken constructs a new Place Autocomplete session token.\n\n```go\ntype PlaceDetailsFieldMask string\n```\nPlaceDetailsFieldMask allows you to specify which fields are to be returned with a place details request. Please see the following URL for more detail: [https://cloud.google.com/maps-platform/user-guide/product-changes/#places](https://cloud.google.com/maps-platform/user-guide/product-changes/#places)\n\n```go\nfunc ParsePlaceDetailsFieldMask(placeDetailsFieldMask string) (PlaceDetailsFieldMask, error)\n```\nParsePlaceDetailsFieldMask will parse a string representation of PlaceDetailsFieldMask.\n\n```go\ntype PlaceDetailsRequest struct {\n\t// PlaceID is a textual identifier that uniquely identifies a place, returned from a\n\t// Place Search.\n\tPlaceID string\n\t// Language is the language code, indicating in which language the results should be\n\t// returned, if possible.\n\tLanguage string\n\t// Fields allows you to select which parts of the returned details structure\n\t// should be filled in. For more detail, please see the following URL:\n\t// https://cloud.google.com/maps-platform/user-guide/product-changes/#places\n\tFields []PlaceDetailsFieldMask\n\t// SessionToken is a token that marks this request as part of a Place Autocomplete\n\t// Session. Optional.\n\tSessionToken PlaceAutocompleteSessionToken\n\t// Region is the region code, specified as a ccTLD (country code top-level domain)\n\t// two-character value. Most ccTLD codes are identical to ISO 3166-1 codes, with\n\t// some exceptions. This parameter will only influence, not fully restrict, results.\n\tRegion string\n}\n```\nPlaceDetailsRequest is the functional options struct for PlaceDetails\n\n```go\ntype PlaceDetailsResult struct {\n\t// AddressComponents is an array of separate address components used to compose a\n\t// given address.\n\tAddressComponents []AddressComponent `json:\"address_components,omitempty\"`\n\t// FormattedAddress is the human-readable address of this place.\n\tFormattedAddress string `json:\"formatted_address,omitempty\"`\n\t// AdrAddress is the address in the \"adr\" microformat.\n\tAdrAddress string `json:\"adr_address,omitempty\"`\n\t// FormattedPhoneNumber contains the place's phone number in its local format. For\n\t// example, the formatted_phone_number for Google's Sydney, Australia office is\n\t// (02) 9374 4000.\n\tFormattedPhoneNumber string `json:\"formatted_phone_number,omitempty\"`\n\t// InternationalPhoneNumber contains the place's phone number in international\n\t// format. International format includes the country code, and is prefixed with the\n\t// plus (+) sign. For example, the international_phone_number for Google's Sydney,\n\t// Australia office is +61 2 9374 4000.\n\tInternationalPhoneNumber string `json:\"international_phone_number,omitempty\"`\n\t// Geometry contains geometry information about the result, generally including the\n\t// location (geocode) of the place and (optionally) the viewport identifying its\n\t// general area of coverage.\n\tGeometry AddressGeometry `json:\"geometry,omitempty\"`\n\t// Name contains the human-readable name for the returned result. For establishment\n\t// results, this is usually the business name.\n\tName string `json:\"name,omitempty\"`\n\t// Icon contains the URL of a recommended icon which may be displayed to the user\n\t// when indicating this result.\n\tIcon string `json:\"icon,omitempty\"`\n\t// PlaceID is a textual identifier that uniquely identifies a place.\n\tPlaceID string `json:\"place_id,omitempty\"`\n\t// Scope indicates the scope of the PlaceID.\n\tScope string `json:\"scope,omitempty\"`\n\t// Rating contains the place's rating, from 1.0 to 5.0, based on aggregated user\n\t// reviews.\n\tRating float32 `json:\"rating,omitempty\"`\n\t// UserRatingsTotal contains total number of the place's ratings\n\tUserRatingsTotal int `json:\"user_ratings_total,omitempty\"`\n\t// Types contains an array of feature types describing the given result.\n\tTypes []string `json:\"types,omitempty\"`\n\t// OpeningHours may contain whether the place is open now or not.\n\tOpeningHours *OpeningHours `json:\"opening_hours,omitempty\"`\n\t// Photos is an array of photo objects, each containing a reference to an image.\n\tPhotos []Photo `json:\"photos,omitempty\"`\n\t// AltIDs — An array of zero, one or more alternative place IDs for the place, with\n\t// a scope related to each alternative ID.\n\tAltIDs []AltID `json:\"alt_ids,omitempty\"`\n\t// PriceLevel is the price level of the place, on a scale of 0 to 4.\n\tPriceLevel int `json:\"price_level,omitempty\"`\n\t// Vicinity contains a feature name of a nearby location.\n\tVicinity string `json:\"vicinity,omitempty\"`\n\t// PermanentlyClosed is a boolean flag indicating whether the place has permanently\n\t// shut down (value true). If the place is not permanently closed, the flag is\n\t// absent from the response.\n\tPermanentlyClosed bool `json:\"permanently_closed,omitempty\"`\n\t// Reviews is an array of up to five reviews. If a language parameter was specified\n\t// in the Place Details request, the Places Service will bias the results to prefer\n\t// reviews written in that language.\n\tReviews []PlaceReview `json:\"reviews,omitempty\"`\n\t// UTCOffset contains the number of minutes this place’s current timezone is offset\n\t// from UTC. For example, for places in Sydney, Australia during daylight saving\n\t// time this would be 660 (+11 hours from UTC), and for places in California outside\n\t// of daylight saving time this would be -480 (-8 hours from UTC).\n\tUTCOffset *int `json:\"utc_offset,omitempty\"`\n\t// Website lists the authoritative website for this place, such as a business'\n\t// homepage.\n\tWebsite string `json:\"website,omitempty\"`\n\t// URL contains the URL of the official Google page for this place. This will be the\n\t// establishment's Google+ page if the Google+ page exists, otherwise it will be the\n\t// Google-owned page that contains the best available information about the place.\n\t// Applications must link to or embed this page on any screen that shows detailed\n\t// results about the place to the user.\n\tURL string `json:\"url,omitempty\"`\n\t// HTMLAttributions contain a set of attributions about this listing which must be\n\t// displayed to the user.\n\tHTMLAttributions []string `json:\"html_attributions,omitempty\"`\n}\n```\nPlaceDetailsResult is an individual Places API Place Details result\n\n```go\ntype PlacePhotoRequest struct {\n\t// PhotoReference is a string used to identify the photo when you perform a Photo\n\t// request.\n\tPhotoReference string\n\t// MaxHeight is the maximum height of the image. One of MaxHeight and MaxWidth is\n\t// required.\n\tMaxHeight uint\n\t// MaxWidth is the maximum width of the image. One of MaxHeight and MaxWidth is\n\t// required.\n\tMaxWidth uint\n}\n```\nPlacePhotoRequest is the functional options struct for Places Photo API\n\n```go\ntype PlacePhotoResponse struct {\n\t// ContentType is the server reported type of the Image.\n\tContentType string\n\t// Data is the server returned image data. You must close this after you are\n\t// finished.\n\tData io.ReadCloser\n}\n```\nPlacePhotoResponse is a response to the Place Photo request\n\n```go\nfunc (resp *PlacePhotoResponse) Image() (image.Image, error)\n```\nImage will read and close  response.Data and return it as an image.\n\n```go\ntype PlaceReview struct {\n\t// Aspects contains a collection of AspectRatings, each of which provides a rating\n\t// of a single attribute of the establishment. The first in the collection is\n\t// considered the primary aspect.\n\tAspects []PlaceReviewAspect `json:\"aspects,omitempty\"`\n\t// AuthorName the name of the user who submitted the review. Anonymous reviews are\n\t// attributed to \"A Google user\".\n\tAuthorName string `json:\"author_name,omitempty\"`\n\t// AuthorURL the URL to the user's Google+ profile, if available.\n\tAuthorURL string `json:\"author_url,omitempty\"`\n\t// AuthorPhoto the Google+ profile photo url of the user who submitted the review, if available.\n\tAuthorProfilePhoto string `json:\"profile_photo_url\"`\n\t// Language an IETF language code indicating the language used in the user's review.\n\t// This field contains the main language tag only, and not the secondary tag\n\t// indicating country or region.\n\tLanguage string `json:\"language,omitempty\"`\n\t// Rating the user's overall rating for this place. This is a whole number, ranging\n\t// from 1 to 5.\n\tRating int `json:\"rating,omitempty\"`\n\t// Text is the user's review. When reviewing a location with Google Places, text\n\t// reviews are considered optional. Therefore, this field may by empty. Note that\n\t// this field may include simple HTML markup.\n\tText string `json:\"text,omitempty\"`\n\t// Time the time that the review was submitted, measured in the number of seconds\n\t// since since midnight, January 1, 1970 UTC.\n\tTime int `json:\"time,omitempty\"` // TODO(samthor): convert this to a real time.Time\n}\n```\nPlaceReview is a review of a Place\n\n```go\ntype PlaceReviewAspect struct {\n\t// Rating is the user's rating for this particular aspect, from 0 to 3.\n\tRating int `json:\"rating\"`\n\t// Type is the name of the aspect that is being rated. The following types are\n\t// supported: appeal, atmosphere, decor, facilities, food, overall, quality and\n\t// service.\n\tType string `json:\"type,omitempty\"`\n}\n```\nPlaceReviewAspect provides a rating of a single attribute of the establishment.\n\n```go\ntype PlaceSearchFieldMask string\n```\nPlaceSearchFieldMask allows you to specify which fields are to be returned with a place search request. Please see the following URL for more detail: [https://cloud.google.com/maps-platform/user-guide/product-changes/#places](https://cloud.google.com/maps-platform/user-guide/product-changes/#places)\n\n```go\nfunc ParsePlaceSearchFieldMask(placeSearchFieldMask string) (PlaceSearchFieldMask, error)\n```\nParsePlaceSearchFieldMask will parse a string representation of PlaceSearchFieldMask.\n\n```go\ntype PlaceType string\n```\nPlaceType restricts Place API search to the results to places matching the specified type.\n\n```go\nfunc ParsePlaceType(placeType string) (PlaceType, error)\n```\nParsePlaceType will parse a string representation of a PlaceType.\n\n```go\ntype PlacesSearchResponse struct {\n\t// Results is the Place results for the search query\n\tResults []PlacesSearchResult\n\t// HTMLAttributions contain a set of attributions about this listing which must be\n\t// displayed to the user.\n\tHTMLAttributions []string\n\t// NextPageToken contains a token that can be used to return up to 20 additional\n\t// results.\n\tNextPageToken string\n}\n```\nPlacesSearchResponse is the response to a Places API Search request.\n\n```go\ntype PlacesSearchResult struct {\n\t// FormattedAddress is the human-readable address of this place\n\tFormattedAddress string `json:\"formatted_address,omitempty\"`\n\t// Geometry contains geometry information about the result, generally including the\n\t// location (geocode) of the place and (optionally) the viewport identifying its\n\t// general area of coverage.\n\tGeometry AddressGeometry `json:\"geometry,omitempty\"`\n\t// Name contains the human-readable name for the returned result. For establishment\n\t// results, this is usually the business name.\n\tName string `json:\"name,omitempty\"`\n\t// Icon contains the URL of a recommended icon which may be displayed to the user\n\t// when indicating this result.\n\tIcon string `json:\"icon,omitempty\"`\n\t// PlaceID is a textual identifier that uniquely identifies a place.\n\tPlaceID string `json:\"place_id,omitempty\"`\n\t// Scope indicates the scope of the PlaceID.\n\tScope string `json:\"scope,omitempty\"`\n\t// Rating contains the place's rating, from 1.0 to 5.0, based on aggregated user\n\t// reviews.\n\tRating float32 `json:\"rating,omitempty\"`\n\t// UserRatingsTotal contains total number of the place's ratings\n\tUserRatingsTotal int `json:\"user_ratings_total,omitempty\"`\n\t// Types contains an array of feature types describing the given result.\n\tTypes []string `json:\"types,omitempty\"`\n\t// OpeningHours may contain whether the place is open now or not.\n\tOpeningHours *OpeningHours `json:\"opening_hours,omitempty\"`\n\t// Photos is an array of photo objects, each containing a reference to an image.\n\tPhotos []Photo `json:\"photos,omitempty\"`\n\t// AltIDs — An array of zero, one or more alternative place IDs for the place, with\n\t// a scope related to each alternative ID.\n\tAltIDs []AltID `json:\"alt_ids,omitempty\"`\n\t// PriceLevel is the price level of the place, on a scale of 0 to 4.\n\tPriceLevel int `json:\"price_level,omitempty\"`\n\t// Vicinity contains a feature name of a nearby location.\n\tVicinity string `json:\"vicinity,omitempty\"`\n\t// PermanentlyClosed is a boolean flag indicating whether the place has permanently\n\t// shut down.\n\tPermanentlyClosed bool `json:\"permanently_closed,omitempty\"`\n\t// ID is an identifier.\n\tID string `json:\"id,omitempty\"`\n}\n```\nPlacesSearchResult is an individual Places API search result\n\n```go\ntype Polyline struct {\n\tPoints string `json:\"points\"`\n}\n```\nPolyline represents a list of lat,lng points encoded as a byte array. See: [https://developers.google.com/maps/documentation/utilities/polylinealgorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)\n\n```go\nfunc (p *Polyline) Decode() ([]LatLng, error)\n```\nDecode converts this encoded Polyline to an array of LatLng objects.\n\n```go\ntype PriceLevel string\n```\nPriceLevel is the Price Levels for Places API\n\n```go\ntype QueryAutocompleteRequest struct {\n\t// Input is the text string on which to search. The Places service will return\n\t// candidate matches based on this string and order results based on their perceived\n\t// relevance.\n\tInput string\n\t// Offset is the character position in the input term at which the service uses text\n\t// for predictions. For example, if the input is 'Googl' and the completion point is\n\t// 3, the service will match on 'Goo'. The offset should generally be set to the\n\t// position of the text caret. If no offset is supplied, the service will use the\n\t// entire term.\n\tOffset uint\n\t// Location is the point around which you wish to retrieve place information.\n\tLocation *LatLng\n\t// Radius is the distance (in meters) within which to return place results. Note\n\t// that setting a radius biases results to the indicated area, but may not fully\n\t// restrict results to the specified area.\n\tRadius uint\n\t// Language is the language in which to return results.\n\tLanguage string\n}\n```\nQueryAutocompleteRequest is the functional options struct for Query Autocomplete\n\n```go\ntype RadioType string\n```\nRadioType defines mobile radio types\n\n```go\nconst (\n\tRadioTypeLTE   RadioType = \"lte\"\n\tRadioTypeGSM   RadioType = \"gsm\"\n\tRadioTypeCDMA  RadioType = \"cdma\"\n\tRadioTypeWCDMA RadioType = \"wcdma\"\n)\n```\nAllowed radio types\n\n```go\ntype RankBy string\n```\nRankBy specifies the order in which results are listed.\n\n```go\ntype Route struct {\n\t// Summary contains a short textual description for the route, suitable for\n\t// naming and disambiguating the route from alternatives.\n\tSummary string `json:\"summary\"`\n\n\t// Legs contains information about a leg of the route, between two locations within\n\t// the given route. A separate leg will be present for each waypoint or destination\n\t// specified. A route with no waypoints will contain exactly one leg within the legs\n\t// array.\n\tLegs []*Leg `json:\"legs\"`\n\n\t// WaypointOrder contains an array indicating the order of any waypoints in the\n\t// calculated route.\n\tWaypointOrder []int `json:\"waypoint_order\"`\n\n\t// OverviewPolyline contains an approximate (smoothed) path of the resulting\n\t// directions.\n\tOverviewPolyline Polyline `json:\"overview_polyline\"`\n\n\t// Bounds contains the viewport bounding box of the overview polyline.\n\tBounds LatLngBounds `json:\"bounds\"`\n\n\t// Copyrights contains the copyrights text to be displayed for this route. You\n\t// must handle and display this information yourself.\n\tCopyrights string `json:\"copyrights\"`\n\n\t// Warnings contains an array of warnings to be displayed when showing these\n\t// directions. You must handle and display these warnings yourself.\n\tWarnings []string `json:\"warnings\"`\n\n\t// Fare contains the total fare (that is, the total ticket costs) on this route.\n\t// This property is only returned for transit requests and only for routes where\n\t// fare information is available for all transit legs.\n\t*Fare `json:\"fare\"`\n}\n```\nRoute represents a single route between an origin and a destination.\n\n```go\ntype SnapToRoadRequest struct {\n\t// Path is the path to be snapped.\n\tPath []LatLng\n\n\t// Interpolate is whether to interpolate a path to include all points forming the\n\t// full road-geometry.\n\tInterpolate bool\n}\n```\nSnapToRoadRequest is the request structure for the Roads Snap to Road API.\n\n```go\ntype SnapToRoadResponse struct {\n\tSnappedPoints []SnappedPoint `json:\"snappedPoints\"`\n}\n```\nSnapToRoadResponse is an array of snapped points.\n\n```go\ntype SnappedPoint struct {\n\t// Location of the snapped point.\n\tLocation LatLng `json:\"location\"`\n\n\t// OriginalIndex is an integer that indicates the corresponding value in the\n\t// original request. Not present on interpolated points.\n\tOriginalIndex *int `json:\"originalIndex\"`\n\n\t// PlaceID is a unique identifier for a place.\n\tPlaceID string `json:\"placeId\"`\n}\n```\nSnappedPoint is the original path point snapped to a road.\n\n```go\nfunc (sp *SnappedPoint) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for SnappedPoint. This encodes Go types back to the API representation.\n\n```go\nfunc (sp *SnappedPoint) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler for SnappedPoint. This decode the API representation into types useful for Go developers.\n\n```go\ntype SpeedLimit struct {\n\t// PlaceID is a unique identifier for a place.\n\tPlaceID string `json:\"placeId\"`\n\t// SpeedLimit is the speed limit for that road segment.\n\tSpeedLimit float64 `json:\"speedLimit\"`\n\t// Units is either KPH or MPH.\n\tUnits speedLimitUnit `json:\"units\"`\n}\n```\nSpeedLimit is the speed limit for a PlaceID\n\n```go\ntype SpeedLimitsRequest struct {\n\t// Path is the path to be snapped and speed limits requested.\n\tPath []LatLng\n\n\t// PlaceID is the PlaceIDs to request speed limits for.\n\tPlaceID []string\n\n\t// Units is whether to return speed limits in `SpeedLimitKPH` or `SpeedLimitMPH`.\n\t// Optional, default behavior is to return results in KPH.\n\tUnits speedLimitUnit\n}\n```\nSpeedLimitsRequest is the request structure for the Roads Speed Limits API.\n\n```go\ntype SpeedLimitsResponse struct {\n\tSpeedLimits   []SpeedLimit   `json:\"speedLimits\"`\n\tSnappedPoints []SnappedPoint `json:\"snappedPoints\"`\n}\n```\nSpeedLimitsResponse is an array of snapped points and an array of speed limits.\n\n```go\ntype StaticMapRequest struct {\n\t// Center focus the map at the correct location\n\tCenter string\n\t// Zoom (required if markers not present) defines the zoom level of the map\n\tZoom int\n\t// Size (required) defines the rectangular dimensions of the map image. This\n\t// parameter takes a string of the form {horizontal_value}x{vertical_value}\n\tSize string\n\t// Scale (optional) affects the number of pixels that are returned. Accepted values\n\t// are 2 and 4\n\tScale int\n\t// Format format (optional) defines the format of the resulting image. Default: PNG.\n\t// Accepted Values: There are several possible formats including GIF, JPEG and PNG\n\t// types.\n\tFormat Format\n\t// Language (optional) defines the language to use for display of labels on map\n\t// tiles\n\tLanguage string\n\t// Region (optional) defines the appropriate borders to display, based on\n\t// geo-political sensitivities.\n\tRegion string\n\t// MapType (optional) defines the type of map to construct.\n\tMapType MapType\n\t// Markers (optional) define one or more markers to attach to the image at specified\n\t// locations.\n\tMarkers []Marker\n\t// Paths (optional) defines multiple paths of two or more connected points to\n\t// overlay on the image at specified locations\n\tPaths []Path\n\t// Visible specifies one or more locations that should remain visible on the map,\n\t// though no markers or other indicators will be displayed.\n\tVisible []LatLng\n\t// MapStyles (optional) contains map styles.\n\tMapStyles []string\n}\n```\nStaticMapRequest is the functional options struct for staticMap.Get\n\n```go\ntype Step struct {\n\t// HTMLInstructions contains formatted instructions for this step, presented as an\n\t// HTML text string.\n\tHTMLInstructions string `json:\"html_instructions\"`\n\n\t// Distance contains the distance covered by this step until the next step.\n\tDistance `json:\"distance\"`\n\n\t// Duration contains the typical time required to perform the step, until the next\n\t// step.\n\ttime.Duration `json:\"duration\"`\n\n\t// StartLocation contains the location of the starting point of this step, as a\n\t// single set of lat and lng fields.\n\tStartLocation LatLng `json:\"start_location\"`\n\n\t// EndLocation contains the location of the last point of this step, as a single\n\t// set of lat and lng fields.\n\tEndLocation LatLng `json:\"end_location\"`\n\n\t// Polyline contains a single points object that holds an encoded polyline\n\t// representation of the step. This polyline is an approximate (smoothed) path of\n\t// the step.\n\tPolyline `json:\"polyline\"`\n\n\t// Steps contains detailed directions for walking or driving steps in transit\n\t// directions. Substeps are only available when travel_mode is set to \"transit\".\n\t// The inner steps array is of the same type as steps.\n\tSteps []*Step `json:\"steps\"`\n\n\t// TransitDetails contains transit specific information. This field is only\n\t// returned with travel mode is set to \"transit\".\n\tTransitDetails *TransitDetails `json:\"transit_details\"`\n\n\t// TravelMode indicates the travel mode of this step.\n\tTravelMode string `json:\"travel_mode\"`\n}\n```\nStep represents a single step of a leg.\n\n```go\nfunc (step *Step) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for Step. This encodes Go types back to the API representation.\n\n```go\nfunc (step *Step) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler for Step. This decodes the API representation into types useful for Go developers.\n\n```go\ntype TextSearchRequest struct {\n\t// Query is the text string on which to search, for example: \"restaurant\". The\n\t// Google Places service will return candidate matches based on this string and\n\t// order the results based on their perceived relevance.\n\tQuery string\n\t// Location is the latitude/longitude around which to retrieve place information. If\n\t// you specify a location parameter, you must also specify a radius parameter.\n\tLocation *LatLng\n\t// Radius defines the distance (in meters) within which to bias place results. The\n\t// maximum allowed radius is 50,000 meters. Results inside of this region will be\n\t// ranked higher than results outside of the search circle; however, prominent\n\t// results from outside of the search radius may be included.\n\tRadius uint\n\t// Language specifies the language in which to return results. Optional.\n\tLanguage string\n\t// MinPrice restricts results to only those places within the specified price level.\n\t// Valid values are in the range from 0 (most affordable) to 4 (most expensive),\n\t// inclusive.\n\tMinPrice PriceLevel\n\t// MaxPrice restricts results to only those places within the specified price level.\n\t// Valid values are in the range from 0 (most affordable) to 4 (most expensive),\n\t// inclusive.\n\tMaxPrice PriceLevel\n\t// OpenNow returns only those places that are open for business at the time the\n\t// query is sent. Places that do not specify opening hours in the Google Places\n\t// database will not be returned if you include this parameter in your query.\n\tOpenNow bool\n\t// Type restricts the results to places matching the specified type.\n\tType PlaceType\n\t// PageToken returns the next 20 results from a previously run search. Setting a\n\t// PageToken parameter will execute a search with the same parameters used\n\t// previously — all parameters other than PageToken will be ignored.\n\tPageToken string\n\t// The region code, specified as a ccTLD (country code top-level domain) two-character\n\t// value. Most ccTLD codes are identical to ISO 3166-1 codes, with some exceptions.\n\t// This parameter will only influence, not fully restrict, search results. If more\n\t// relevant results exist outside of the specified region, they may be included. When\n\t// this parameter is used, the country name is omitted from the resulting formatted_address\n\t// for results in the specified region.\n\tRegion string\n}\n```\nTextSearchRequest is the functional options struct for TextSearch\n\n```go\ntype TimezoneRequest struct {\n\t// Location represents the location to look up.\n\tLocation *LatLng\n\t// Timestamp specifies the desired time. Time Zone API uses the timestamp to\n\t// determine whether or not Daylight Savings should be applied.\n\tTimestamp time.Time\n\t// Language in which to return results.\n\tLanguage string\n}\n```\nTimezoneRequest is the request structure for Timezone API.\n\n```go\ntype TimezoneResult struct {\n\t// DstOffset is the offset for daylight-savings time in seconds.\n\tDstOffset int `json:\"dstOffset\"`\n\t// RawOffset is the offset from UTC for the given location.\n\tRawOffset int `json:\"rawOffset\"`\n\t// TimeZoneID is a string containing the \"tz\" ID of the time zone.\n\tTimeZoneID string `json:\"timeZoneId\"`\n\t// TimeZoneName is a string containing the long form name of the time zone.\n\tTimeZoneName string `json:\"timeZoneName\"`\n}\n```\nTimezoneResult is a single timezone result.\n\n```go\ntype TrafficModel string\n```\nTrafficModel specifies traffic prediction model when requesting future directions.\n\n```go\ntype TransitAgency struct {\n\t// Name contains the name of the transit agency\n\tName string `json:\"name\"`\n\t// URL contains the URL for the transit agency\n\tURL *url.URL `json:\"url\"`\n\t// Phone contains the phone number of the transit agency\n\tPhone string `json:\"phone\"`\n}\n```\nTransitAgency contains information about the operator of the line\n\n```go\nfunc (transitAgency *TransitAgency) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for TransitAgency. This encodes Go types back to the API representation.\n\n```go\nfunc (transitAgency *TransitAgency) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON imlpements json.Unmarshaler for TransitAgency. This decodes the API representation into types useful for Go developers.\n\n```go\ntype TransitDetails struct {\n\t// ArrivalStop contains information about the stop/station for this part of the\n\t// trip.\n\tArrivalStop TransitStop `json:\"arrival_stop\"`\n\t// DepartureStop contains information about the stop/station for this part of the\n\t// trip.\n\tDepartureStop TransitStop `json:\"departure_stop\"`\n\t// ArrivalTime contains the arrival time for this leg of the journey.\n\tArrivalTime time.Time `json:\"arrival_time\"`\n\t// DepartureTime contains the departure time for this leg of the journey.\n\tDepartureTime time.Time `json:\"departure_time\"`\n\t// Headsign specifies the direction in which to travel on this line, as it is\n\t// marked on the vehicle or at the departure stop.\n\tHeadsign string `json:\"headsign\"`\n\t// Headway specifies the expected number of seconds between departures from the\n\t// same stop at this time\n\tHeadway time.Duration `json:\"headway\"`\n\t// NumStops contains the number of stops in this step, counting the arrival stop,\n\t// but not the departure stop\n\tNumStops uint `json:\"num_stops\"`\n\t// Line contains information about the transit line used in this step.\n\tLine TransitLine `json:\"line\"`\n\t// TripShortName contains additional information for this part of the\n\t// trip.\n\tTripShortName string `json:\"trip_short_name\"`\n}\n```\nTransitDetails contains additional information about the transit stop, transit line and transit agency.\n\n```go\nfunc (transitDetails *TransitDetails) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for TransitDetails. This encodes Go types back to the API representation.\n\n```go\nfunc (transitDetails *TransitDetails) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler for TransitDetails. This decodes the API representation into types useful for Go developers.\n\n```go\ntype TransitLine struct {\n\t// Name contains the full name of this transit line. eg. \"7 Avenue Express\".\n\tName string `json:\"name\"`\n\t// ShortName contains the short name of this transit line.\n\tShortName string `json:\"short_name\"`\n\t// Color contains the color commonly used in signage for this transit line.\n\tColor string `json:\"color\"`\n\t// Agencies contains information about the operator of the line\n\tAgencies []*TransitAgency `json:\"agencies\"`\n\t// URL contains the URL for this transit line as provided by the transit agency\n\tURL *url.URL `json:\"url\"`\n\t// Icon contains the URL for the icon associated with this line\n\tIcon *url.URL `json:\"icon\"`\n\t// TextColor contains the color of text commonly used for signage of this line\n\tTextColor string `json:\"text_color\"`\n\t// Vehicle contains the type of vehicle used on this line\n\tVehicle TransitLineVehicle `json:\"vehicle\"`\n}\n```\nTransitLine contains information about the transit line used in this step\n\n```go\nfunc (transitLine *TransitLine) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for TransitLine. This encodes Go types back to the API representation.\n\n```go\nfunc (transitLine *TransitLine) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON imlpements json.Unmarshaler for TransitLine. This decodes the API representation into types useful for Go developers.\n\n```go\ntype TransitLineVehicle struct {\n\t// Name contains the name of the vehicle on this line\n\tName string `json:\"name\"`\n\t// Type contains the type of vehicle that runs on this line\n\tType string `json:\"type\"`\n\t// Icon contains the URL for an icon associated with this vehicle type\n\tIcon *url.URL `json:\"icon\"`\n}\n```\nTransitLineVehicle contains the type of vehicle used on this line\n\n```go\nfunc (transitLineVehicle *TransitLineVehicle) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for TransitLineVehicle. This encodes Go types back to the API representation.\n\n```go\nfunc (transitLineVehicle *TransitLineVehicle) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON imlpements json.Unmarshaler for TransitLineVehicle. This decodes the API representation into types useful for Go developers.\n\n```go\ntype TransitMode string\n```\nTransitMode is for specifying a transit mode for a request\n\n```go\ntype TransitRoutingPreference string\n```\nTransitRoutingPreference biases which routes are returned\n\n```go\ntype TransitStop struct {\n\t// Location of the transit station/stop.\n\tLocation LatLng `json:\"location\"`\n\t// Name of the transit station/stop. eg. \"Union Square\".\n\tName string `json:\"name\"`\n}\n```\nTransitStop contains information about the stop/station for this part of the trip.\n\n```go\ntype Units string\n```\nUnits specifies which units system to return human readable results in.\n\n```go\ntype ViaWaypoint struct {\n\tLocation          LatLng  `json:\"location\"`\n\tStepIndex         int     `json:\"step_index\"`\n\tStepInterpolation float64 `json:\"step_interpolation\"`\n}\n```\nViaWaypoint handles waypoints.\n\n```go\ntype WiFiAccessPoint struct {\n\t// MacAddress is the MAC address of the WiFi node. Separators must be : (colon).\n\tMACAddress string `json:\"macAddress,omitempty\"`\n\t// SignalStrength is the current signal strength measured in dBm.\n\tSignalStrength float64 `json:\"signalStrength,omitempty\"`\n\t// Age is the number of milliseconds since this access point was detected.\n\tAge uint64 `json:\"age,omitempty\"`\n\t// Channel is the channel over which the client is communicating with the access\n\t// point.\n\tChannel int `json:\"channel,omitempty\"`\n\t// SignalToNoiseRatio is the current signal to noise ratio measured in dB.\n\tSignalToNoiseRatio float64 `json:\"signalToNoiseRatio,omitempty\"`\n}\n```\nWiFiAccessPoint is a WiFi access point object for localisation requests\n\n","path":"github.com/androidapplicationdev/maps-services-go","name":"maps","synopsis":"Package maps provides a client library for the Google Maps Web Service APIs.","isRedistributable":true}
