Google Maps JavaScript API V3 Reference

上次更新时间:2023 年 2 月 2 日,星期四

这是 Maps JavaScript API 3.51 版中的所有类、方法和接口的索引。

如需了解详情,请参阅版本说明版本控制

点击任一项的名称即可查看详细文档。

全局概念

google.maps

google.maps 命名空间

静态方法:BetaimportLibrary

常量:version

测试版CoreLibrary 接口

属性: ControlPositioneventLatLngLatLngAltitudeLatLngBoundsMapsNetworkErrorMapsNetworkErrorEndpointMapsRequestErrorMapsServerErrorMVCArrayMVCObjectPointSettingsSizeSymbolPathUnitSystem

测试版MapsLibrary 界面

BicyclingLayerDataCircleFeatureTypeGroundOverlayImageMapTypeInfoWindowKmlLayerKmlLayerStatusMapMapTypeControlStyleMapTypeIdMapTypeRegistryMaxZoomServiceMaxZoomStatusOverlayViewPolygonPolylineRectangleRenderingTypeStrokePositionStyledMapTypeTrafficLayerTransitLayerWebGLOverlayView

测试版PlacesLibrary 接口

属性: AddressComponentAttributionAutocompleteAutocompleteServiceAutocompleteSessionTokenBusinessStatusOpeningHoursOpeningHoursPeriodOpeningHoursPointPhotoPhotoAttributionPlacePlacesServicePlacesServiceStatusPlusCodeRankByReviewSearchBox

测试版GeocodingLibrary 界面

属性: GeocoderGeocoderLocationTypeGeocoderStatus

测试版RoutesLibrary 接口

属性: DirectionsRendererDirectionsServiceDirectionsStatusDistanceMatrixElementStatusDistanceMatrixServiceDistanceMatrixStatusTrafficModelTransitModeTransitRoutePreferenceTravelModeVehicleType

测试版MarkerLibrary 接口

属性: AdvancedMarkerViewAnimationCollisionBehaviorMarkerPinView

测试版GeometryLibrary 接口

属性: encodingpolyspherical

测试版ElevationLibrary 接口

属性: ElevationServiceElevationStatus

测试版StreetViewLibrary 界面

属性: InfoWindowOverlayViewStreetViewCoverageLayerStreetViewPanoramaStreetViewPreferenceStreetViewServiceStreetViewSourceStreetViewStatus

测试版JourneySHAREDLibrary 接口

属性: AutomaticViewportModeFleetEngineDeliveryFleetLocationProviderFleetEngineDeliveryVehicleLocationProviderFleetEngineServiceTypeFleetEngineShipmentLocationProviderFleetEngineTripLocationProviderJourneySharingMapView

测试版DrawingLibrary 界面

属性: DrawingManagerOverlayType

测试版VisualizationLibrary 接口

属性: HeatmapLayer

设置(Beta 版)

测试版设置类

静态方法:BetagetInstance

属性: BetaexperienceIds

事件系统

事件类

静态方法:addListeneraddListenerOnceclearInstanceListenersclearListenershasListenersremoveListenertriggeraddDomListeneraddDomListenerOnce

MapsEventListener 接口

方法:remove

MVCObject 类

方法: addListenerbindTogetnotifysetsetValuesunbindunbindAll

MVCArray 类

方法: clearforEachgetArraygetAtgetLengthinsertAtpoppushremoveAtsetAt

事件:insert_atremove_atset_at

ErrorEvent 接口

属性: error

错误

MapsNetworkError 类

属性: codeendpoint

MapsRequestError 类
MapsServerError 类
MapsNetworkErrorEndpoint 常量

DIRECTIONS_ROUTEDISTANCE_MATRIXELEVATION_ALONG_PATH、 、 ELEVATION_LOCATIONSFLEET_ENGINE_GET_DELIVERY_VEHICLEFLEET_ENGINE_GET_TRIPFLEET_ENGINE_GET_VEHICLEFLEET_ENGINE_LIST_DELIVERY_VEHICLESFLEET_ENGINE_LIST_TASKSFLEET_ENGINE_LIST_VEHICLESFLEET_ENGINE_SEARCH_TASKSGEOCODER_GEOCODEMAPS_MAX_ZOOMPLACES_AUTOCOMPLETEPLACES_DETAILSPLACES_FIND_PLACE_FROM_PHONE_NUMBERPLACES_FIND_PLACE_FROM_QUERYPLACES_GATEWAYPLACES_LOCAL_CONTEXT_SEARCHPLACES_NEARBY_SEARCHSTREETVIEW_GET_PANORAMA

地图

Google 地图

映射类

属性: controlsdatamapTypesoverlayMapTypes

fitBoundsgetBoundsgetCentergetClickableIconsgetDivBetagetFeatureLayergetHeadingBetagetMapCapabilitiesgetMapTypeIdgetProjectiongetRenderingTypegetStreetViewgetTiltgetZoommoveCamerapanBypanTopanToBoundssetCentersetClickableIconssetHeadingsetMapTypeIdsetOptionssetStreetViewsetTiltsetZoom

常量:DEMO_MAP_ID

事件:bounds_changedcenter_changedclickcontextmenudblclickdragdragenddragstartheading_changedidleisfractionalzoomenabled_changedBetamapcapabilities_changedmaptypeid_changedmousemovemouseoutmouseoverprojection_changedrenderingtype_changedtilesloadedtilesloadedtilesloadedtilesloadedtilesloaded、}tilt_changedzoom_changedrightclick

MapOptions 接口

backgroundColorcenterclickableIconscontrolSizedisableDefaultUIdisableDoubleClickZoomdraggableCursordraggingCursorfullscreenControlfullscreenControlOptionsgestureHandlingheadingisFractionalZoomEnabledkeyboardShortcutsmapIdmapTypeControlmapTypeControlOptionsmapTypeIdmaxZoomminZoomnoClearpanControlpanControlOptionsrestrictionrotateControlrotateControlOptionsscaleControlscaleControlOptionsscrollwheelstreetViewstreetViewControlstreetViewControlOptionsstylestiltzoomzoomControlzoomControlOptionsdraggable

MapTypeStyle 接口

属性: elementTypefeatureTypestylers

MapMouseEvent 接口

属性: domEventlatLng

方法:stop

IconMouseEvent 接口

属性: placeId

MapTypeId 常量

常量:HYBRIDROADMAPSATELLITETERRAIN

MapTypeRegistry 类

方法:set

MapRestriction 接口

属性: latLngBoundsstrictBounds

TrafficLayer 类

方法: getMapsetMapsetOptions

TrafficLayerOptions 接口

属性: autoRefreshmap

TransitLayer 类

方法: getMapsetMap

BicyclingLayer 类

方法: getMapsetMap

测试版CameraOptions 接口

属性: centerheadingtiltzoom

VisibleRegion 接口

属性: farLeftfarRightlatLngBoundsnearLeftnearRight

RenderingType 常量

常量:RASTERUNINITIALIZEDVECTOR

测试版MapCapabilities 接口

属性: isAdvancedMarkersAvailableisDataDrivenStylingAvailable

WebGL

WebGLOverlayView 类

方法: getMaponAddonContextLostonContextRestoredonDrawonRemoveonStateUpdaterequestRedrawrequestStateUpdatesetMap

WebGLDrawOptions 接口

属性: gltransformer

WebGLStateOptions 接口

属性: gl

CoordinateTransform 接口

方法: fromLatLngAltitudegetCameraParams

CameraParams 接口

属性: centerheadingtiltzoom

坐标

LatLng 类

方法:equalslatlngtoJSONtoStringtoUrlValue

LatLngLiteral 接口

属性: latlng

LatLngBounds 类

方法: containsequalsextendgetCentergetNorthEastgetSouthWestintersectsisEmptytoJSONtoSpantoStringtoUrlValueunion

常量:MAX_BOUNDS

LatLngBoundsLiteral 接口

属性: eastnorthsouthwest

LatLngAltitude 类

属性: altitudelatlng

方法: equalstoJSON

LatLngAltitudeLiteral 接口

属性: altitudelatlng

点类

属性: xy

方法: equalstoString

大小类别

属性: heightwidth

方法: equalstoString

内边距界面

属性: bottomleftrighttop

CircleLiteral 接口

属性: centerradius

数据驱动型样式(Beta 版)

测试版FeatureLayer 接口

属性: featureTypeisAvailablestyle

方法:addListener

测试版FeatureType 常量

常量:ADMINISTRATIVE_AREA_LEVEL_1ADMINISTRATIVE_AREA_LEVEL_2ADMINISTRATIVE_AREA_LEVEL_3ADMINISTRATIVE_AREA_LEVEL_4COUNTRYLOCALITYNEIGHBORHOODPOSTAL_CODESUBLOCALITY_LEVEL_1

测试版FeatureStyleFunction typedef
测试版FeatureStyleFunctionOptions 接口

属性: feature

测试版FeatureStyleOptions 接口

属性: fillColorfillOpacitystrokeColorstrokeOpacitystrokeWeight

测试版功能界面

属性: featureType

测试版PlaceFeature 接口

属性: placeIddisplayName

方法:fetchPlace

测试版FeatureMouseEvent 接口

属性: features

控件

FullscreenControlOptions 接口

属性: position

MapTypeControlOptions 接口

属性: mapTypeIdspositionstyle

MapTypeControlStyle 常量

常量:DEFAULTDROPDOWN_MENUHORIZONTAL_BAR

MotionTrackingControlOptions 接口

属性: position

PanControlOptions 接口

属性: position

RotateControlOptions 接口

属性: position

ScaleControlOptions 接口

属性: style

ScaleControlStyle 常量

常量:DEFAULT

StreetViewControlOptions 接口

属性: position

ZoomControlOptions 接口

属性: position

ControlPosition 常量

常量:BOTTOM_CENTERBOTTOM_LEFTBOTTOM_RIGHTLEFT_BOTTOMLEFT_CENTERLEFT_TOPRIGHT_BOTTOMRIGHT_CENTERRIGHT_TOPTOP_CENTERTOP_LEFTTOP_RIGHT

几何图形库

对命名空间进行编码

静态方法:decodePathencodePath

球形命名空间

静态方法:computeAreacomputeDistanceBetweencomputeHeadingcomputeLengthcomputeOffsetcomputeOffsetOrigincomputeSignedAreainterpolate

poly 命名空间

静态方法:containsLocationisLocationOnEdge

在地图上绘制

Marker

Marker 类

getAnimationgetClickablegetCursorgetDraggablegetIcongetLabelgetMapgetOpacitygetPositiongetShapegetTitlegetVisiblegetZIndexsetAnimationsetClickablesetCursorsetDraggablesetIconsetLabelsetMapsetOpacitysetOptionssetPositionsetShapesetTitlesetVisiblesetZIndex

常量:MAX_ZINDEX

事件:animation_changedclickclickable_changedcontextmenucursor_changeddblclickdragdragenddraggable_changeddragstartflat_changedicon_changedmousedownmouseoutmouseovermouseupposition_changedshape_changedtitle_changedtitle_changedtitle_changedtitle_changedtitle_changed、}visible_changedzindex_changedrightclick

MarkerOptions 接口

属性: anchorPointanimationclickableBetacollisionBehaviorcrossOnDragcursordraggableiconlabelmapopacityoptimizedpositionshapetitlevisiblezIndex

测试版冲突行为常量

常量:OPTIONAL_AND_HIDES_LOWER_PRIORITYREQUIREDREQUIRED_AND_HIDES_OPTIONAL

图标界面

属性: anchorlabelOriginoriginscaledSizesizeurl

MarkerLabel 接口

属性: classNamecolorfontFamilyfontSizefontWeighttext

MarkerShape 接口

属性: coordstype

符号接口

属性: anchorfillColorfillOpacitylabelOriginpathrotationscalestrokeColorstrokeOpacitystrokeWeight

SymbolPath 常量

常量:BACKWARD_CLOSED_ARROWBACKWARD_OPEN_ARROWCIRCLEFORWARD_CLOSED_ARROWFORWARD_OPEN_ARROW

动画常量

常量:BOUNCEDROP

高级标记(Beta 版)

测试版AdvancedMarkerView 类

属性: collisionBehaviorcontentdraggableelementmappositiontitlezIndex

方法:addListener

事件: clickdragdragenddragstart

测试版AdvancedMarkerViewOptions 接口

属性: collisionBehaviorcontentdraggableelementmappositiontitlezIndex

测试版PinView 类

属性: backgroundborderColorelementglyphglyphColorscale

方法:addListener

测试版PinViewOptions 接口

属性: backgroundborderColorelementglyphglyphColorscale

信息窗口

InfoWindow 类

方法: closefocusgetContentgetPositiongetZIndexopensetContentsetOptionssetPositionsetZIndex

事件:closeclickcontent_changeddomreadyposition_changedvisiblezindex_changed

InfoWindowOptions 接口

属性: ariaLabelcontentdisableAutoPanmaxWidthminWidthpixelOffsetpositionzIndex

InfoWindowOpenOptions 接口

属性: anchormapshouldFocus

多边形

多段线类

方法: getDraggablegetEditablegetMapgetPathgetVisiblesetDraggablesetEditablesetMapsetOptionssetPathsetVisible

事件:clickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

多段线接口

属性: clickabledraggableeditablegeodesiciconsmappathstrokeColorstrokeOpacitystrokeWeightvisiblezIndex

IconSequence 接口

属性: fixedRotationiconoffsetrepeat

多边形类

方法: getDraggablegetEditablegetMapgetPathgetPathsgetVisiblesetDraggablesetEditablesetMapsetOptionssetPathsetPathssetVisible

事件:clickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

PolygonOptions 接口

属性: clickabledraggableeditablefillColorfillOpacitygeodesicmappathsstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

PolyMouseEvent 接口

属性: edgepathvertex

矩形类

方法: getBoundsgetDraggablegetEditablegetMapgetVisiblesetBoundssetDraggablesetEditablesetMapsetOptionssetVisible

事件:bounds_changedclickcontextmenudblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseuprightclick

RectangleOptions 接口

属性: boundsclickabledraggableeditablefillColorfillOpacitymapstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

Circle 类

方法: getBoundsgetCentergetDraggablegetEditablegetMapgetRadiusgetVisiblesetCentersetDraggablesetEditablesetMapsetOptionssetRadiussetVisible

事件:center_changedclickdblclickdragdragenddragstartmousedownmousemovemouseoutmouseovermouseupradius_changedrightclick

CircleOptions 接口

属性: centerclickabledraggableeditablefillColorfillOpacitymapradiusstrokeColorstrokeOpacitystrokePositionstrokeWeightvisiblezIndex

StrokePosition 常量

常量:CENTERINSIDEOUTSIDE

数据

数据类

方法: addaddGeoJsoncontainsforEachgetControlPositiongetControlsgetDrawingModegetFeatureByIdgetMapgetStyleloadGeoJsonoverrideStyleremoverevertStylesetControlPositionsetControlssetDrawingModesetMapsetStylesetStyletoGeoJson

事件:addfeatureclickcontextmenudblclickmousedownmouseoutmouseovermouseupremovefeatureremovepropertysetgeometrysetpropertyrightclick

Data.DataOptions 接口

属性: controlPositioncontrolsdrawingModefeatureFactorymapstyle

Data.GeoJsonOptions 接口

属性: idPropertyName

Data.StyleOptions 接口

属性: animationclickablecursordraggableeditablefillColorfillOpacityiconiconslabelopacityshapestrokeColorstrokeOpacitystrokeWeighttitlevisiblezIndex

Data.StylingFunction typedef
Data.Feature 类

方法: forEachPropertygetGeometrygetIdgetPropertyremovePropertysetGeometrysetPropertytoGeoJson

事件:removepropertysetgeometrysetproperty

Data.FeatureOptions 接口

属性: geometryidproperties

Data.Geometry 接口

方法: forEachLatLnggetType

Data.Point 类

方法: forEachLatLnggetgetType

Data.MultiPoint 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.LineString 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.MultiLineString 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.LinearRing 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.Polygon 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.MultiPolygon 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.GeometryCollection 类

方法: forEachLatLnggetArraygetAtgetLengthgetType

Data.MouseEvent 接口

属性: feature

Data.AddFeatureEvent 接口

属性: feature

Data.RemoveFeatureEvent 接口

属性: feature

Data.SetGeometryEvent 接口

属性: featurenewGeometryoldGeometry

Data.SetPropertyEvent 接口

属性: featurenamenewValueoldValue

Data.RemovePropertyEvent 接口

属性: featurenameoldValue

DOM 元素

OverlayView 类

静态方法:preventMapHitsAndGesturesFrompreventMapHitsFrom

方法:drawgetMapgetPanesgetProjectiononAddonRemovesetMap

MapPanes 接口

属性: floatPanemapPanemarkerLayeroverlayLayeroverlayMouseTarget

MapCanvasProjection 接口

方法:fromContainerPixelToLatLngfromDivPixelToLatLngfromLatLngToContainerPixelfromLatLngToDivPixelgetVisibleRegiongetWorldWidth

KML

KmlLayer 类

方法: getDefaultViewportgetMapgetMetadatagetStatusgetUrlgetZIndexsetMapsetOptionssetUrlsetZIndex

事件:clickdefaultviewport_changedstatus_changed

KmlLayerOptions 接口

属性: clickablemappreserveViewportscreenOverlayssuppressInfoWindowsurlzIndex

KmlLayerMetadata 接口

属性: authordescriptionhasScreenOverlaysnamesnippet

KmlLayerStatus 常量

常量:DOCUMENT_NOT_FOUNDDOCUMENT_TOO_LARGEFETCH_ERRORINVALID_DOCUMENTINVALID_REQUESTLIMITS_EXCEEDEDOKTIMED_OUTUNKNOWN

KmlMouseEvent 接口

属性: featureDatalatLngpixelOffset

KmlFeatureData 接口

属性: authordescriptionidinfoWindowHtmlnamesnippet

KmlAuthor 接口

属性: emailnameuri

图像叠加层

MapType 接口

属性: altmaxZoomminZoomnameprojectionradiustileSize

方法: getTilereleaseTile

投影界面

方法: fromLatLngToPointfromPointToLatLng

ImageMapType 类

属性: altmaxZoomminZoomnameprojectionradiustileSize

方法: getOpacitygetTilereleaseTilesetOpacity

事件: tilesloaded

ImageMapTypeOptions 接口

属性: altgetTileUrlmaxZoomminZoomnameopacitytileSize

GroundOverlay 类

方法:getBoundsgetMapgetOpacitygetUrlsetMapsetOpacity

活动: clickdblclick

GroundOverlayOptions 接口

属性: clickablemapopacity

StyledMapType 类

属性: altmaxZoomminZoomnameprojectionradiustileSize

方法: getTilereleaseTile

StyledMapTypeOptions 接口

属性: altmaxZoomminZoomname

绘图库

DrawingManager 类

方法: getDrawingModegetMapsetDrawingModesetMapsetOptions

事件:circlecompletemarkercompleteoverlaycompletepolygoncompletepolylinecompleterectanglecomplete

DrawingManagerOptions 接口

属性: circleOptionsdrawingControldrawingControlOptionsdrawingModemapmarkerOptionspolygonOptionspolylineOptionsrectangleOptions

DrawingControlOptions 接口

属性: drawingModesposition

OverlayCompleteEvent 接口

属性: overlaytype

OverlayType 常量

常量:CIRCLEMARKERPOLYGONPOLYLINERECTANGLE

热图

HeatmapLayer 类

方法: getDatagetMapsetDatasetMapsetOptions

HeatmapLayerOptions 接口

属性: datadissipatinggradientmapmaxIntensityopacityradius

WeightedLocation 接口

属性: locationweight

最大缩放

MaxZoomService 类

方法:getMaxZoomAtLatLng

MaxZoomResult 接口

属性: statuszoom

MaxZoomStatus 常量

常量:ERROROK

街景

渲染

StreetViewPanorama 类

属性: controls

方法: focusgetLinksgetLocationgetMotionTrackinggetPanogetPhotographerPovgetPositiongetPovgetStatusgetVisiblegetZoomregisterPanoProvidersetLinkssetMotionTrackingsetOptionssetPanosetPositionsetPovsetVisiblesetVisiblesetZoom

事件: closeclickpano_changedposition_changedpov_changedresizestatus_changedvisible_changedzoom_changed

StreetViewPanoramaOptions 接口

addressControlclickToGoaddressControlOptionscontrolSizedisableDefaultUIdisableDoubleClickZoomenableCloseButtonfullscreenControlfullscreenControlOptionsimageDateControllinksControlmotionTrackingmotionTrackingControlmotionTrackingControlOptionspanControlpanControlOptionspanopositionpovscrollwheelshowRoadLabelsvisiblezoomzoomControlzoomControlOptions

StreetViewAddressControlOptions 接口

属性: position

PanoProviderOptions 接口

属性: cors

StreetViewTileData 接口

属性: centerHeadingtileSizeworldSize

方法:getTileUrl

StreetViewPov 界面

属性: headingpitch

StreetViewCoverageLayer 类

方法: getMapsetMap

服务

StreetViewService 类

方法:getPanorama

StreetViewStatus 常量

常量:OKUNKNOWN_ERRORZERO_RESULTS

StreetViewLocationRequest 接口

属性: locationpreferenceradiussource

StreetViewPanoRequest 接口

属性: pano

StreetViewResponse 接口

属性: data

StreetViewLocation 接口

属性: descriptionlatLngpanoshortDescription

StreetViewPreference 常量

常量:BESTNEAREST

StreetViewSource 常量

常量:DEFAULTOUTDOOR

StreetViewPanoramaData 接口

属性: copyrightimageDatelinkslocationtiles

属性: descriptionheadingpano

地点

地点微件

自动补全类

方法: getBoundsgetFieldsgetPlacesetBoundssetComponentRestrictionssetFieldssetOptionssetTypes

事件: place_changed

AutocompleteOptions 接口

属性: boundscomponentRestrictionsfieldsstrictBoundstypesplaceIdOnly

方法: getBoundsgetPlacessetBounds

事件: places_changed

SearchBoxOptions 接口

属性: bounds

地点(Beta 版)

测试版地点类

静态方法:findPlaceFromPhoneNumberfindPlaceFromQuery

addressComponentsadrFormatAddressattributionsbusinessStatusdisplayNameformattedAddressgoogleMapsURIhasCurbsidePickuphasDeliveryhasDineInhasTakeouthasWheelchairAccessibleEntranceiconiconBackgroundColoridinternationalPhoneNumberisReservablelocationnationalPhoneNumberopeningHoursphotosplusCodepriceLevelratingrequestedLanguagerequestedRegionreviewsservesBeerservesBreakfastservesBrunchservesDinnerservesLunchservesVegetarianFoodservesWinesvgIconMaskURItypesuserRatingsCountutcOffsetMinutesviewportwebsiteURI

方法: fetchFieldsgetNextOpeningTimeisOpen

测试版PlaceOptions 接口

属性: idrequestedLanguagerequestedRegion

测试版AddressComponent 类

属性: longTextshortTexttypes

测试版归因类别

属性: providerproviderURI

测试版FetchFieldsRequest 接口

属性: fieldssessionToken

测试版OpeningHours 类

属性: periodsweekdayDescriptions

测试版OpeningHoursPeriod 类

属性: closeopen

测试版OpeningHoursPoint 类

属性: dayhourminute

测试版照片课程

属性: attributionsheightPxwidthPx

方法:getURI

测试版PhotoAttribution 类

属性: authorauthorURI

测试版PlusCode 类

属性: compoundCodeglobalCode

测试版查看课程

属性: authorauthorPhotoURIauthorURIpublishTimeratingrelativePublishTimeDescriptiontexttextLanguageCode

地点服务

PlacesService 类

方法: findPlaceFromPhoneNumberfindPlaceFromQuerygetDetailsnearbySearchtextSearch

PlaceDetailsRequest 接口

属性: fieldslanguageplaceIdregionsessionToken

FindPlaceFromPhoneNumberRequest 接口

属性: fieldslanguagelocationBiasphoneNumber

FindPlaceFromQueryRequest 接口

属性: fieldslanguagelocationBiasquery

PlaceSearchRequest 接口

属性: boundskeywordlanguagelocationmaxPriceLevelminPriceLevelopenNowradiusrankBytypename

TextSearchRequest 接口

属性: boundslanguagelocationqueryradiusregiontype

RankBy 常量

常量:DISTANCEPROMINENCE

LocationBias 类型定义符
LocationRestriction typedef
PlacesServiceStatus 常量

常量:INVALID_REQUESTNOT_FOUNDOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERRORZERO_RESULTS

PlaceSearchPagination 接口

属性: hasNextPage

方法:nextPage

PlaceResult 接口

address_componentsadr_addressaspectsbusiness_statusformatted_addressformatted_phone_numbergeometryhtml_attributionsiconicon_background_coloricon_mask_base_uriinternational_phone_numbernameopening_hoursphotosplace_idplus_codeprice_levelratingreviewstypesurluser_ratings_totalutc_offset_minutesvicinitywebsiteutc_offsetpermanently_closed

PlaceAspectRating 接口

属性: ratingtype

BusinessStatus 常量

常量:CLOSED_PERMANENTLYCLOSED_TEMPORARILYOPERATIONAL

PlaceGeometry 接口

属性: locationviewport

PlaceOpeningHours 接口

属性: periodsweekday_textopen_now

方法:isOpen

PlaceOpeningHoursPeriod 接口

属性: closeopen

PlaceOpeningHoursTime 接口

属性: dayhoursminutesnextDatetime

PlacePlusCode 接口

属性: compound_codeglobal_code

PlacePhoto 界面

属性: heighthtml_attributionswidth

方法:getUrl

PhotoOptions 接口

属性: maxHeightmaxWidth

PlaceReview 接口

属性: author_nameauthor_urllanguageprofile_photo_urlratingrelative_time_descriptiontexttimeaspects

地点自动补全服务

AutocompleteService 类

方法: getPlacePredictionsgetQueryPredictions

AutoCompletionRequest 接口

属性: boundscomponentRestrictionsinputlanguagelocationoffsetoriginradiusregionsessionTokentypes

AutocompleteResponse 接口

属性: predictions

QueryAuto completionRequest 接口

属性: boundsinputlocationoffsetradius

AutocompleteSessionToken 类
ComponentRestrictions 接口

属性: country

AutocompletePrediction 接口

属性: descriptiondistance_metersmatched_substringsplace_idstructured_formattingtermstypes

QueryAutocompletePrediction 接口

属性: descriptionmatched_substringsplace_idterms

Predictionterm 接口

属性: offsetvalue

PredictionSubstring 接口

属性: lengthoffset

StructuredFormat 接口

属性: main_textmain_text_matched_substringssecondary_text

地理编码器

地理编码器类

方法:geocode

GeocoderRequest 接口

属性: addressboundscomponentRestrictionslanguagelocationplaceIdregion

GeocoderComponentRestrictions 接口

属性: administrativeAreacountrylocalitypostalCoderoute

GeocoderStatus 常量

常量:ERRORINVALID_REQUESTOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERRORZERO_RESULTS

GeocoderResponse 接口

属性: results

GeocoderResult 接口

属性: address_componentsformatted_addressgeometrypartial_matchplace_idplus_codepostcode_localitiestypes

GeocoderAddressComponent 接口

属性: long_nameshort_nametypes

GeocoderGeometry 接口

属性: boundslocationlocation_typeviewport

GeocoderLocationType 常量

常量:APPROXIMATEGEOMETRIC_CENTERRANGE_INTERPOLATEDROOFTOP

路线

路线

DirectionsService 类

方法:route

DirectionsRequest 接口

属性: avoidFerriesavoidHighwaysavoidTollsdestinationdrivingOptionslanguageoptimizeWaypointsoriginprovideRouteAlternativesregiontransitOptionstravelModeunitSystemwaypoints

DirectionsStatus 常量

常量:INVALID_REQUESTMAX_WAYPOINTS_EXCEEDEDNOT_FOUNDOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERRORZERO_RESULTS

DirectionsResult 接口

属性: available_travel_modesgeocoded_waypointsroutes

DirectionsRenderer 类

方法: getDirectionsgetMapgetPanelgetRouteIndexsetDirectionssetMapsetOptionssetPanelsetRouteIndex

事件: directions_changed

DirectionsRendererOptions 接口

属性: directionsdraggablehideRouteListinfoWindowmapmarkerOptionspanelpolylineOptionspreserveViewportrouteIndexsuppressBicyclingLayersuppressInfoWindowssuppressMarkerssuppressPolylines

DirectionsWaypoint 接口

属性: locationstopover

DirectionsGeocodedWaypoint 接口

属性: partial_matchplace_idtypes

DirectionsRoute 接口

属性: boundscopyrightsfarelegsoverview_pathoverview_polylinesummarywarningswaypoint_order

DirectionsLeg 接口

属性: arrival_timedeparture_timedistancedurationduration_in_trafficend_addressend_locationstart_addressstart_locationstepsvia_waypointstraffic_speed_entry

DirectionsStep 接口

属性: distancedurationencoded_lat_lngsend_locationinstructionsmaneuverpathstart_locationstepstransittransit_detailstravel_modestart_pointend_pointlat_lngspolyline

DirectionsLine 接口

属性: points

地点界面

属性: locationplaceIdquery

TravelMode 常量

常量:BICYCLINGDRIVINGTRANSITWALKING

DrivingOptions 接口

属性: departureTimetrafficModel

TrafficModel 常量

常量:BEST_GUESSOPTIMISTICPESSIMISTIC

TransitOptions 接口

属性: arrivalTimedepartureTimemodesroutingPreference

TransitMode 常量

常量:BUSRAILSUBWAYTRAINTRAM

TransitRoutePreference 常量

常量:FEWER_TRANSFERSLESS_WALKING

TransitFare 接口

属性: currencyvalue

TransitDetails 接口

属性: arrival_stoparrival_timedeparture_stopdeparture_timeheadsignheadwaylinenum_stopstrip_short_name

TransitStop 接口

属性: locationname

TransitLine 接口

属性: agenciescoloriconnameshort_nametext_colorurlvehicle

TransitAgency 界面

属性: namephoneurl

TransitVehicle 接口

属性: iconlocal_iconnametype

VehicleType 常量

常量:BUSCABLE_CARCOMMUTER_TRAINFERRYFUNICULARGONDOLA_LIFTHEAVY_RAILHIGH_SPEED_TRAININTERCITY_BUSMETRO_RAILMONORAILOTHERRAILSHARE_TAXISUBWAYTRAMTROLLEYBUS

UnitSystem 常量

常量:IMPERIALMETRIC

距离界面

属性: textvalue

“时长”界面

属性: textvalue

时间界面

属性: texttime_zonevalue

DirectionsTravelMode 常量
DirectionsUnitSystem 常量

距离矩阵

DistanceMatrixService 类

方法:getDistanceMatrix

DistanceMatrixRequest 接口

属性: avoidFerriesavoidHighwaysavoidTollsdestinationsdrivingOptionslanguageoriginsregiontransitOptionstravelModeunitSystem

DistanceMatrixResponse 接口

属性: destinationAddressesoriginAddressesrows

DistanceMatrixResponseRow 接口

属性: elements

DistanceMatrixResponseElement 接口

属性: distancedurationduration_in_trafficfarestatus

DistanceMatrixStatus 常量

常量:INVALID_REQUESTMAX_DIMENSIONS_EXCEEDEDMAX_ELEMENTS_EXCEEDEDOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERROR

DistanceMatrixElementStatus 常量

常量:NOT_FOUNDOKZERO_RESULTS

海拔

ElevationService 类

方法: getElevationAlongPathgetElevationForLocations

LocationElevationRequest 接口

属性: locations

LocationElevationResponse 接口

属性: results

PathElevationRequest 接口

属性: pathsamples

PathElevationResponse 接口

属性: results

ElevationResult 接口

属性: elevationlocationresolution

ElevationStatus 常量

常量:INVALID_REQUESTOKOVER_QUERY_LIMITREQUEST_DENIEDUNKNOWN_ERROR

Local Context(Beta 版)

地图视图

测试版LocalContextMapView 类

属性: directionsOptionselementisTransitioningMapBoundslocationBiaslocationRestrictionmaxPlaceCountplaceTypePreferences

方法: addListenerhidePlaceDetailsViewsearch

事件:errorplacedetailsviewhidestartplacedetailsviewshowstart

测试版LocalContextMapViewOptions 接口

属性: directionsOptionselementlocationBiaslocationRestrictionmapmaxPlaceCountpinOptionsSetupplaceChooserViewSetupplaceDetailsViewSetupplaceTypePreferences

测试版PlaceTypePreference typedef
测试版MapDirectionsOptions 类

方法:addListener

测试版MapDirectionsOptionsLiteral 接口

属性: origin

测试版PinOptions 接口

属性: backgroundglyphColorscale

PlaceChooserViewSetupOptions 接口

属性: layoutModeposition

测试版PlaceChooserLayoutMode 常量

常量:HIDDENSHEET

测试版PlaceChooserPosition 常量

常量:BLOCK_ENDINLINE_ENDINLINE_START

PlaceDetailsViewSetupOptions 接口

属性: hidesOnMapClicklayoutModeposition

测试版PlaceDetailsLayoutMode 常量

常量:INFO_WINDOWSHEET

测试版PlaceDetailsPosition 常量

常量:INLINE_ENDINLINE_START

旅程分享(Beta 版)

地图视图

测试版Journey SharingMapView 类

anticipatedRoutePolylinesautomaticViewportModeanticipatedRoutePolylineSetupelementenableTrafficlocationProvidermapmapOptionstakenRoutePolylinestakenRoutePolylineSetupdestinationMarkerSetuporiginMarkerSetuppingMarkerSetupsuccessfulTaskMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetupdestinationMarkersoriginMarkerssuccessfulTaskMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkers

测试版Journey SharingMapViewOptions 接口

属性: anticipatedRoutePolylineSetupautomaticViewportModeelementlocationProvidermapOptionstakenRoutePolylineSetupdestinationMarkerSetuporiginMarkerSetuppingMarkerSetupsuccessfulTaskMarkerSetuptaskOutcomeMarkerSetupunsuccessfulTaskMarkerSetupvehicleMarkerSetupwaypointMarkerSetup

测试版AutomaticViewportMode 常量

常量:FIT_ANTICIPATED_ROUTENONE

测试版LocationProvider 抽象类

方法:addListener

测试版PollingLocationProvider 抽象类

属性: isPolling

事件: ispollingchange

测试版PollingLocationProviderIsPollingChangeEvent 接口

属性: error

身份验证

测试版AuthToken 接口

属性: expiresInSecondstoken

测试版AuthTokenContext 接口

属性: deliveryVehicleIdtaskIdtrackingIdtripIdvehicleId

测试版AuthTokenFetcher typedef
测试版AuthTokenFetcherOptions 接口

属性: contextserviceType

测试版FleetEngineServiceType 常量

常量:DELIVERY_VEHICLE_SERVICETASK_SERVICETRIP_SERVICEUNKNOWN_SERVICE

界面自定义

测试版折线设置类型定义符
测试版折线设置选项界面

属性: polylineOptionsvisible

测试版Default 折线 SetupOptions 接口

属性: defaultPolylineOptionsdefaultVisible

测试版MarkerSetup typedef
测试版MarkerSetupOptions 接口

属性: markerOptions

测试版DefaultMarkerSetupOptions 接口

属性: defaultMarkerOptions

测试版MarkerCustomizationFunctionParams 接口

属性: defaultOptionsisNewmarker

测试版DeliveryVehicleMarkerCustomizationFunctionParams 接口

属性: vehicle

测试版PlannedStopMarkerCustomizationFunctionParams 接口

属性: stopIndex

测试版TaskMarkerCustomizationFunctionParams 接口

属性: task

测试版ShipmentMarkerCustomizationFunctionParams 接口

属性: task

测试版TripMarkerCustomizationFunctionParams 接口

属性: trip

测试版TripWaypointMarkerCustomizationFunctionParams 接口

属性: waypointIndex

舰队引擎实体

测试版任务界面

属性: estimatedCompletionTimelatestVehicleLocationUpdatenameoutcomeoutcomeLocationoutcomeLocationSourceoutcomeTimeplannedLocationremainingVehicleJourneySegmentsstatustrackingIdtypevehicleId

测试版行程界面

属性: actualDropOffLocationactualPickupLocationdropOffTimelatestVehicleLocationUpdatenamepassengerCountpickupTimeplannedDropOffLocationplannedPickupLocationremainingWaypointsstatustypevehicleId

测试版DeliveryVehicle 接口

属性: attributescurrentRouteSegmentEndPointlatestVehicleLocationUpdatenamenavigationStatusremainingDistanceMetersremainingDurationMillisremainingVehicleJourneySegments

测试版VehicleJourneySegment 接口

属性: distanceMetersdurationMillisextraDurationMillislocationpath

测试版VehicleLocationUpdate 接口

属性: headinglocationspeedKilometersPerHourtime

测试版VehicleWaypoint 接口

属性: distanceMetersdurationMillislocationpath

行程和订单进度

测试版FleetEngineTripLocationProvider 类

属性: tripId

方法:refresh

活动: errorupdate

测试版FleetEngineTripLocationProviderOptions 接口

属性: authTokenFetcherdestinationMarkerCustomizationoriginMarkerCustomizationpollingIntervalMillisprojectIdtripIdvehicleMarkerCustomizationwaypointMarkerCustomization

测试版FleetEngineTripLocationProviderUpdateEvent 接口

属性: trip

车队跟踪

测试版FleetEngineDeliveryVehicleLocationProvider 类

属性: deliveryVehicleIdshouldShowOutcomeLocationsshouldShowTasksstaleLocationThresholdMillistaskFilterOptions

活动: errorupdate

测试版FleetEngineDeliveryVehicleLocationProviderOptions 接口

属性: authTokenFetcherdeliveryVehicleIddeliveryVehicleMarkerCustomizationplannedStopMarkerCustomizationpollingIntervalMillisprojectIdshouldShowOutcomeLocationsshouldShowTasksstaleLocationThresholdMillistaskFilterOptionstaskMarkerCustomizationtaskOutcomeMarkerCustomization

测试版FleetEngineTaskFilterOptions 接口

属性: completionTimeFromcompletionTimeTostate

测试版FleetEngineDeliveryVehicleLocationProviderUpdateEvent 接口

属性: completedVehicleJourneySegmentsdeliveryVehicletasks

测试版FleetEngineDeliveryFleetLocationProvider 类

属性: deliveryVehicleFilterlocationRestrictionpollingIntervalMillisstaleLocationThresholdMillis

事件: update

测试版FleetEngineDeliveryFleetLocationProviderOptions 接口

属性: authTokenFetcherdeliveryVehicleFilterdeliveryVehicleMarkerCustomizationlocationRestrictionprojectIdstaleLocationThresholdMillis

测试版FleetEngineDeliveryFleetLocationProviderUpdateEvent 接口

属性: deliveryVehicles

货运跟踪

测试版FleetEngineShipmentLocationProvider 类

属性: trackingId

方法: getTaskrefresh

活动: errorupdate

测试版FleetEngineShipmentLocationProviderOptions 接口

属性: authTokenFetcherdeliveryVehicleMarkerCustomizationdestinationMarkerCustomizationpollingIntervalMillisprojectIdtrackingId

测试版FleetEngineShipmentLocationProviderUpdateEvent 接口

属性: task