上次更新时间:2023 年 11 月 14 日,星期二
这是 Maps JavaScript API 3.55 版(每周渠道)中所有类、方法和接口的索引。 此参考文档会及时更新 API 的最新更改。
点击任意项的名称即可查看详细文档。
全局概念
google.maps
- google.maps 命名空间
-
静态方法:
importLibrary
常量:
version
- CoreLibrary 接口
-
属性:
ControlPosition
、event
、LatLng
、LatLngAltitude
、LatLngBounds
、MapsNetworkError
、MapsNetworkErrorEndpoint
、MapsRequestError
、MapsServerError
、MVCArray
、MVCObject
、Point
、Settings
、Size
、SymbolPath
、UnitSystem
- MapsLibrary 接口
-
属性:
BicyclingLayer
、Circle
、Data
、FeatureType
、GroundOverlay
、ImageMapType
、InfoWindow
、KmlLayer
、KmlLayerStatus
、Map
、MapTypeControlStyle
、MapTypeId
、MapTypeRegistry
、MaxZoomService
、MaxZoomStatus
、OverlayView
、Polygon
、Polyline
、 {2,2,9/}、Rectangle
RenderingType
StrokePosition
StyledMapType
TrafficLayer
TransitLayer
WebGLOverlayView
ZoomChangeEvent
- PlacesLibrary 接口
-
属性:
AddressComponent
、Attribution
、AuthorAttribution
、Autocomplete
、AutocompleteService
、AutocompleteSessionToken
、BusinessStatus
、OpeningHours
、OpeningHoursPeriod
、OpeningHoursPoint
、Photo
、Place
、PlacesService
、PlacesServiceStatus
、PlusCode
、PriceLevel
、RankBy
、Review
、SearchBox
- GeocodingLibrary 接口
- RoutesLibrary 接口
-
属性:
DirectionsRenderer
、DirectionsService
、DirectionsStatus
、DistanceMatrixElementStatus
、DistanceMatrixService
、DistanceMatrixStatus
、TrafficModel
、TransitMode
、TransitRoutePreference
、TravelMode
、VehicleType
- MarkerLibrary 接口
-
属性:
AdvancedMarkerClickEvent
、AdvancedMarkerElement
、Animation
、CollisionBehavior
、Marker
、PinElement
- GeometryLibrary 接口
- ElevationLibrary 接口
- StreetViewLibrary 界面
-
属性:
InfoWindow
、OverlayView
、StreetViewCoverageLayer
、StreetViewPanorama
、StreetViewPreference
、StreetViewService
、StreetViewSource
、StreetViewStatus
- JourneySharedLibrary 界面
-
属性:
AutomaticViewportMode
、DeliveryVehicleStopState
、FleetEngineDeliveryFleetLocationProvider
、FleetEngineDeliveryVehicleLocationProvider
、FleetEngineFleetLocationProvider
、FleetEngineServiceType
、FleetEngineShipmentLocationProvider
、FleetEngineTripLocationProvider
、FleetEngineVehicleLocationProvider
、JourneySharingMapView
、TripType
、VehicleNavigationStatus
、VehicleState
、VehicleType
、WaypointType
- DrawingLibrary 接口
- VisualizationLibrary 接口
-
属性:
HeatmapLayer
设置(Beta 版)
设置类
-
静态方法:
getInstance
事件系统
- 事件类别
-
静态方法:
addListener
、addListenerOnce
、clearInstanceListeners
、clearListeners
、hasListeners
、removeListener
、trigger
、
、addDomListeneraddDomListenerOnce - MapsEventListener 接口
-
方法:
remove
- MVCObject 类
-
方法:
addListener
、bindTo
、get
、notify
、set
、setValues
、unbind
、unbindAll
- MVCArray 类
-
方法:
clear
、forEach
、getArray
、getAt
、getLength
、insertAt
、pop
、push
、removeAt
、setAt
- ErrorEvent 接口
-
属性:
error
错误
- MapsNetworkError 类
- MapsRequestError 类
- MapsServerError 类
- MapsNetworkErrorEndpoint 常量
-
常量:
DIRECTIONS_ROUTE
、DISTANCE_MATRIX
、ELEVATION_ALONG_PATH
、ELEVATION_LOCATIONS
、FLEET_ENGINE_GET_DELIVERY_VEHICLE
、FLEET_ENGINE_GET_TRIP
、FLEET_ENGINE_GET_VEHICLE
、FLEET_ENGINE_LIST_DELIVERY_VEHICLES
、FLEET_ENGINE_LIST_TASKS
、FLEET_ENGINE_LIST_VEHICLES
、FLEET_ENGINE_SEARCH_TASKS
、GEOCODER_GEOCODE
、MAPS_MAX_ZOOM
、PLACES_AUTOCOMPLETE
、PLACES_DETAILS
、PLACES_FIND_PLACE_FROM_PHONE_NUMBER
、PLACES_FIND_PLACE_FROM_QUERY
、PLACES_GATEWAY
、PLACES_LOCAL_CONTEXT_SEARCH
、PLACES_LOCAL_CONTEXT_SEARCH
、PLACES_NEARBY_SEARCH
STREETVIEW_GET_PANORAMA
Maps
Google 地图
- Map 类
-
属性:
controls
、data
、mapTypes
、overlayMapTypes
方法:
fitBounds
、getBounds
、getCenter
、getClickableIcons
、
、getDatasetFeatureLayer
getDiv
、getFeatureLayer
、getHeading
、getMapCapabilities
、getMapTypeId
、getProjection
、getRenderingType
、getStreetView
、getTilt
、getZoom
、moveCamera
、panBy
、panTo
、{2、2、、panToBounds
、panTo
、getProjection
、getRenderingType
、getStreetView
、getTilt
、panBy
、panTo
、{2/9/}、panToBounds
、setCenter
setClickableIcons
setHeading
setMapTypeId
setOptions
setStreetView
setTilt
setZoom
常量:
DEMO_MAP_ID
事件:
bounds_changed
、center_changed
、click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、heading_changed
、idle
、isfractionalzoomenabled_changed
、mapcapabilities_changed
、maptypeid_changed
、mousemove
、mouseout
、mouseover
、projection_changed
、renderingtype_changed
、tilesloaded
、tilesloaded
{1tilt_changed
zoom_changed
rightclick - MapOptions 接口
-
属性:
backgroundColor
、center
、clickableIcons
、controlSize
、disableDefaultUI
、disableDoubleClickZoom
、draggableCursor
、draggingCursor
、fullscreenControl
、fullscreenControlOptions
、gestureHandling
、heading
、isFractionalZoomEnabled
、keyboardShortcuts
、mapId
、mapTypeControl
、mapTypeControlOptions
、mapTypeId
、clickableIcons
、maxZoom
、maxZoom
minZoom
noClear
restriction
rotateControl
rotateControlOptions
scaleControl
scaleControlOptions
scrollwheel
streetView
streetViewControl
streetViewControlOptions
styles
tilt
zoom
zoomControl
zoomControlOptions
draggablepanControlpanControlOptions MapElement 类
-
方法:
、addEventListener
removeEventListener
事件:
gmp-zoomchange
MapElementOptions 接口
ZoomChangeEvent 类
- MapTypeStyle 接口
- MapMouseEvent 接口
-
方法:
stop
- IconMouseEvent 接口
-
属性:
placeId
- MapTypeId 常量
- MapTypeRegistry 类
-
方法:
set
- MapRestriction 接口
- TrafficLayer 类
- TrafficLayerOptions 接口
-
属性:
autoRefresh
、map
- TransitLayer 类
- BicyclingLayer 类
CameraOptions 接口
- VisibleRegion 接口
- RenderingType 常量
- MapCapabilities 接口
WebGL
- WebGLOverlayView 类
-
方法:
getMap
、onAdd
、onContextLost
、onContextRestored
、onDraw
、onRemove
、onStateUpdate
、requestRedraw
、requestStateUpdate
、setMap
- WebGLDrawOptions 接口
-
属性:
gl
、transformer
- WebGLStateOptions 接口
-
属性:
gl
- CoordinateTransformer 接口
- CameraParams 接口
坐标
- LatLng 类
- LatLngLiteral 接口
- LatLngBounds 类
-
方法:
contains
、equals
、extend
、getCenter
、getNorthEast
、getSouthWest
、intersects
、isEmpty
、toJSON
、toSpan
、toString
、toUrlValue
、union
常量:
MAX_BOUNDS
- LatLngBoundsLiteral 接口
- LatLngAltitude 类
- LatLngAltitudeLiteral 接口
- 积分类
- 大小类别
- Padding 接口
- CircleLiteral 接口
数据驱动型样式
- FeatureLayer 接口
-
属性:
、datasetId
featureType
、isAvailable
、style
方法:
addListener
- FeatureType 常量
-
常量:
ADMINISTRATIVE_AREA_LEVEL_1
、ADMINISTRATIVE_AREA_LEVEL_2
、COUNTRY
、
、DATASET
LOCALITY
、POSTAL_CODE
、SCHOOL_DISTRICT
- FeatureStyleFunction typedef
- FeatureStyleFunctionOptions 接口
-
属性:
feature
- FeatureStyleOptions 接口
-
属性:
fillColor
、fillOpacity
、strokeColor
、strokeOpacity
、strokeWeight
- 功能界面
-
属性:
featureType
- PlaceFeature 接口
-
属性:
placeId
方法:
fetchPlace
DatasetFeature 接口
- FeatureMouseEvent 接口
-
属性:
features
控件
- FullscreenControlOptions 界面
-
属性:
position
- MapTypeControlOptions 接口
- MapTypeControlStyle 常量
- MotionTrackingControlOptions 界面
-
属性:
position
- PanControlOptions 接口
-
属性:
position
- RotateControlOptions 接口
-
属性:
position
- ScaleControlOptions 接口
-
属性:
style
- ScaleControlStyle 常量
-
常量:
DEFAULT
- StreetViewControlOptions 界面
- ZoomControlOptions 接口
-
属性:
position
- ControlPosition 常量
-
常量:
BLOCK_END_INLINE_CENTER
、BLOCK_END_INLINE_END
、BLOCK_END_INLINE_START
、BLOCK_START_INLINE_CENTER
、BLOCK_START_INLINE_END
、BLOCK_START_INLINE_START
、BOTTOM_CENTER
、BOTTOM_LEFT
、BOTTOM_RIGHT
、INLINE_END_BLOCK_CENTER
、INLINE_END_BLOCK_END
、INLINE_END_BLOCK_START
、INLINE_START_BLOCK_CENTER
、INLINE_START_BLOCK_END
、INLINE_START_BLOCK_START
、LEFT_BOTTOM
、LEFT_CENTER
、LEFT_TOP
、2、RIGHT_BOTTOM
、RIGHT_BOTTOM
、LEFT_TOP
、RIGHT_BOTTOM
、RIGHT_BOTTOM
、RIGHT_CENTER
RIGHT_TOP
TOP_CENTER
TOP_LEFT
TOP_RIGHT
几何图形库
- 编码命名空间
-
静态方法:
decodePath
、encodePath
- 球形命名空间
-
静态方法:
computeArea
、computeDistanceBetween
、computeHeading
、computeLength
、computeOffset
、computeOffsetOrigin
、computeSignedArea
、interpolate
- poly 命名空间
在地图上绘制
Marker
- Marker 类
-
方法:
getAnimation
、getClickable
、getCursor
、getDraggable
、getIcon
、getLabel
、getMap
、getOpacity
、getPosition
、getShape
、getTitle
、getVisible
、getZIndex
、setAnimation
、setClickable
、setCursor
、setDraggable
、setIcon
、{2、2、、setLabel
、setIcon
、getTitle
、getVisible
、getZIndex
、setAnimation
、setDraggable
、setIcon
、{2/9/}、setLabel
、setMap
setOpacity
setOptions
setPosition
setShape
setTitle
setVisible
setZIndex
常量:
MAX_ZINDEX
事件:
animation_changed
、click
、clickable_changed
、contextmenu
、cursor_changed
、dblclick
、drag
、dragend
、draggable_changed
、dragstart
、flat_changed
、icon_changed
、mousedown
、mouseout
、mouseover
、mouseup
、position_changed
、shape_changed
、title_changed
、title_changed
{1visible_changed
zindex_changed
rightclick - MarkerOptions 接口
-
属性:
anchorPoint
、animation
、clickable
、crossOnDrag
、cursor
、draggable
、icon
、label
、map
、opacity
、optimized
、position
、shape
、title
、visible
、zIndex
、collisionBehavior
- CollisionBehavior 常量
-
常量:
OPTIONAL_AND_HIDES_LOWER_PRIORITY
、REQUIRED
、REQUIRED_AND_HIDES_OPTIONAL
- 图标界面
- MarkerLabel 接口
- MarkerShape 接口
- 符号接口
-
属性:
anchor
、fillColor
、fillOpacity
、labelOrigin
、path
、rotation
、scale
、strokeColor
、strokeOpacity
、strokeWeight
- SymbolPath 常量
-
常量:
BACKWARD_CLOSED_ARROW
、BACKWARD_OPEN_ARROW
、CIRCLE
、FORWARD_CLOSED_ARROW
、FORWARD_OPEN_ARROW
- 动画常量
高级标记
- AdvancedMarkerElement 类
-
属性:
collisionBehavior
、content
、element
、gmpDraggable
、map
、position
、title
、zIndex
- AdvancedMarkerElementOptions 接口
-
属性:
collisionBehavior
、content
、gmpDraggable
、map
、position
、title
、zIndex
AdvancedMarkerClickEvent 类
- PinElement 类
- PinElementOptions 接口
信息窗口
- InfoWindow 类
-
方法:
close
、focus
、getContent
、getPosition
、getZIndex
、open
、setContent
、setOptions
、setPosition
、setZIndex
事件:
closeclick
、content_changed
、domready
、position_changed
、visible
、zindex_changed
- InfoWindowOptions 接口
-
属性:
ariaLabel
、content
、disableAutoPan
、maxWidth
、minWidth
、pixelOffset
、position
、zIndex
- InfoWindowOpenOptions 接口
-
属性:
anchor
、map
、shouldFocus
多边形
- Polygon 类
-
方法:
getDraggable
、getEditable
、getMap
、getPath
、getVisible
、setDraggable
、setEditable
、setMap
、setOptions
、setPath
、setVisible
事件:
click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、rightclick - PolygonOptions 接口
-
属性:
clickable
、draggable
、editable
、geodesic
、icons
、map
、path
、strokeColor
、strokeOpacity
、strokeWeight
、visible
和zIndex
- IconSequence 接口
- Polygon 类
-
方法:
getDraggable
、getEditable
、getMap
、getPath
、getPaths
、getVisible
、setDraggable
、setEditable
、setMap
、setOptions
、setPath
、setPaths
、setVisible
事件:
click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、rightclick - PolygonOptions 接口
-
属性:
clickable
、draggable
、editable
、fillColor
、fillOpacity
、geodesic
、map
、paths
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
和zIndex
- PolyMouseEvent 接口
- Rectangle 类
-
方法:
getBounds
、getDraggable
、getEditable
、getMap
、getVisible
、setBounds
、setDraggable
、setEditable
、setMap
、setOptions
、setVisible
事件:
bounds_changed
、click
、contextmenu
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、rightclick - RectangleOptions 接口
-
属性:
bounds
、clickable
、draggable
、editable
、fillColor
、fillOpacity
、map
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
、zIndex
- Circle 类
-
方法:
getBounds
、getCenter
、getDraggable
、getEditable
、getMap
、getRadius
、getVisible
、setCenter
、setDraggable
、setEditable
、setMap
、setOptions
、setRadius
、setVisible
事件:
center_changed
、click
、dblclick
、drag
、dragend
、dragstart
、mousedown
、mousemove
、mouseout
、mouseover
、mouseup
、radius_changed
、rightclick
- CircleOptions 接口
-
属性:
center
、clickable
、draggable
、editable
、fillColor
、fillOpacity
、map
、radius
、strokeColor
、strokeOpacity
、strokePosition
、strokeWeight
、visible
和zIndex
- StrokePosition 常量
数据
- 数据类
-
方法:
add
、addGeoJson
、contains
、forEach
、getControlPosition
、getControls
、getDrawingMode
、getFeatureById
、getMap
、getStyle
、loadGeoJson
、overrideStyle
、remove
、revertStyle
、setControlPosition
、setControls
、setDrawingMode
、setMap
、setStyle
、toGeoJson
事件:
addfeature
、click
、contextmenu
、dblclick
、mousedown
、mouseout
、mouseover
、mouseup
、removefeature
、removeproperty
、setgeometry
、setproperty
、rightclick - Data.DataOptions 接口
-
属性:
controlPosition
、controls
、drawingMode
、featureFactory
、map
、style
- Data.GeoJsonOptions 接口
- Data.StyleOptions 接口
-
属性:
animation
、clickable
、cursor
、draggable
、editable
、fillColor
、fillOpacity
、icon
、icons
、label
、opacity
、shape
、strokeColor
、strokeOpacity
、strokeWeight
、title
、visible
、zIndex
- Data.StylingFunction typedef
- Data.Feature 类
-
方法:
forEachProperty
、getGeometry
、getId
、getProperty
、removeProperty
、setGeometry
、setProperty
、toGeoJson
- Data.FeatureOptions 接口
-
属性:
geometry
、id
、properties
- Data.Geometry 接口
- Data.Point 类
- Data.MultiPoint 类
- Data.LineString 类
- Data.MultiLineString 类
- Data.LinearRing 类
- Data.Polygon 类
- Data.MultiPolygon 类
- Data.GeometryCollection 类
- Data.MouseEvent 接口
-
属性:
feature
- Data.AddFeatureEvent 接口
-
属性:
feature
- Data.RemoveFeatureEvent 接口
-
属性:
feature
- Data.SetGeometryEvent 接口
- Data.SetPropertyEvent 接口
- Data.RemovePropertyEvent 接口
DOM 元素
- OverlayView 类
- MapPanes 接口
-
属性:
floatPane
、mapPane
、markerLayer
、overlayLayer
、overlayMouseTarget
- MapCanvasProjection 界面
-
方法:
fromContainerPixelToLatLng
、fromDivPixelToLatLng
、fromLatLngToContainerPixel
、fromLatLngToDivPixel
、getVisibleRegion
、getWorldWidth
KML
- KmlLayer 类
-
方法:
getDefaultViewport
、getMap
、getMetadata
、getStatus
、getUrl
、getZIndex
、setMap
、setOptions
、setUrl
、setZIndex
- KmlLayerOptions 接口
-
属性:
clickable
、map
、preserveViewport
、screenOverlays
、suppressInfoWindows
、url
、zIndex
- KmlLayerMetadata 接口
- KmlLayerStatus 常量
-
常量:
DOCUMENT_NOT_FOUND
、DOCUMENT_TOO_LARGE
、FETCH_ERROR
、INVALID_DOCUMENT
、INVALID_REQUEST
、LIMITS_EXCEEDED
、OK
、TIMED_OUT
、UNKNOWN
- KmlMouseEvent 接口
- KmlFeatureData 接口
- KmlAuthor 接口
图像叠加层
- MapType 接口
- 投影界面
- ImageMapType 类
-
属性:
alt
、maxZoom
、minZoom
、name
、projection
、radius
、tileSize
方法:
getOpacity
、getTile
、releaseTile
、setOpacity
事件:
tilesloaded
- ImageMapTypeOptions 接口
- GroundOverlay 类
- GroundOverlayOptions 接口
- StyledMapType 类
- StyledMapTypeOptions 接口
绘图库
- DrawingManager 类
-
方法:
getDrawingMode
、getMap
、setDrawingMode
、setMap
、setOptions
事件:
circlecomplete
、markercomplete
、overlaycomplete
、polygoncomplete
、polylinecomplete
、rectanglecomplete
- DrawingManagerOptions 界面
-
属性:
circleOptions
、drawingControl
、drawingControlOptions
、drawingMode
、map
、markerOptions
、polygonOptions
、polylineOptions
、rectangleOptions
- DrawingControlOptions 界面
- OverlayCompleteEvent 接口
- OverlayType 常量
热图
- HeatmapLayer 类
- HeatmapLayerOptions 接口
-
属性:
data
、dissipating
、gradient
、map
、maxIntensity
、opacity
、radius
- WeightedLocation 接口
最大缩放
街景
渲染
- StreetViewPanorama 类
-
属性:
controls
方法:
focus
、getLinks
、getLocation
、getMotionTracking
、getPano
、getPhotographerPov
、getPosition
、getPov
、getStatus
、getVisible
、getZoom
、registerPanoProvider
、setLinks
、setMotionTracking
、setOptions
、setPano
、setPosition
、setPov
、setVisible
、setZoom
事件:
closeclick
、pano_changed
、position_changed
、pov_changed
、resize
、status_changed
、visible_changed
、zoom_changed
- StreetViewPanoramaOptions 界面
-
属性设置为
addressControl
addressControlOptions
clickToGo
controlSize
disableDefaultUI
disableDoubleClickZoom
enableCloseButton
fullscreenControl
fullscreenControlOptions
imageDateControl
linksControl
motionTracking
motionTrackingControl
motionTrackingControlOptions
panControl
panControlOptions
pano
position
pov
scrollwheel
showRoadLabels
visible
zoom
zoomControl
zoomControlOptions
- StreetViewAddressControlOptions 界面
-
属性:
position
- PanoProviderOptions 接口
-
属性:
cors
- StreetViewTileData 接口
-
属性:
centerHeading
、tileSize
、worldSize
方法:
getTileUrl
- StreetViewPov 界面
- StreetViewCoverageLayer 类
服务
- StreetViewService 类
-
方法:
getPanorama
- StreetViewStatus 常量
- StreetViewLocationRequest 接口
- StreetViewPanoRequest 接口
-
属性:
pano
- StreetViewResponse 接口
-
属性:
data
- StreetViewLocation 界面
- StreetViewPreference 常量
- StreetViewSource 常量
- StreetViewPanoramaData 接口
- StreetViewLink 界面
地点
地点 widget
PlaceAutocompleteElement 类
-
属性:
inputElement
PlaceAutocompleteElementOptions 接口
-
属性:
componentRestrictions
、inputElement
、locationBias
、locationRestriction
、requestedLanguage
、requestedRegion
、types
PlaceAutocompletePlaceSelectEvent 类
-
属性:
place
PlaceAutocompleteRequestErrorEvent 类
- Autocomplete 类
-
方法:
getBounds
、getFields
、getPlace
、setBounds
、setComponentRestrictions
、setFields
、setOptions
、setTypes
事件:
place_changed
- AutocompleteOptions 界面
-
属性:
bounds
、componentRestrictions
、fields
、strictBounds
、types
、placeIdOnly - SearchBox 类
-
方法:
getBounds
、getPlaces
、setBounds
事件:
places_changed
- SearchBoxOptions 界面
-
属性:
bounds
地点(Beta 版)
地点类
-
静态方法:
、findPlaceFromPhoneNumber
、findPlaceFromQuery
searchByText
属性:
addressComponents
、adrFormatAddress
、attributions
、businessStatus
、displayName
、formattedAddress
、googleMapsURI
、hasCurbsidePickup
、hasDelivery
、hasDineIn
、hasTakeout
、
、hasWheelchairAccessibleEntrance
iconBackgroundColor
、id
、internationalPhoneNumber
、isReservable
、location
、nationalPhoneNumber
、attributions
、openingHours
photos
plusCode
priceLevel
rating
requestedLanguage
requestedRegion
reviews
servesBeer
servesBreakfast
servesBrunch
servesDinner
servesLunch
servesVegetarianFood
servesWine
svgIconMaskURI
types
userRatingCount
utcOffsetMinutes
viewport
websiteURI
PlaceOptions 接口
AddressComponent 类
归因类
FetchFieldsRequest 接口
OpeningHours 课程
OpeningHoursPeriod 类
OpeningHoursPoint 类
照片类
-
属性:
authorAttributions
、heightPx
、widthPx
方法:
getURI
AuthorAttribution 类
PlusCode 类
审核课程
-
属性:
authorAttribution
、publishTime
、rating
、relativePublishTimeDescription
、text
、textLanguageCode
PriceLevel 常量
SearchByTextRequest 接口
-
属性:
fields
、includedType
、isOpenNow
、language
、locationBias
、locationRestriction
、maxResultCount
、minRating
、priceLevels
、rankBy
、region
、textQuery
、useStrictTypeFiltering
和query SearchByTextRankBy 常量
地点服务
- PlacesService 类
-
方法:
findPlaceFromPhoneNumber
、findPlaceFromQuery
、getDetails
、nearbySearch
、textSearch
- PlaceDetailsRequest 接口
- FindPlaceFromPhoneNumberRequest 接口
- FindPlaceFromQueryRequest 接口
- PlaceSearchRequest 接口
-
属性:
bounds
、keyword
、language
、location
、maxPriceLevel
、minPriceLevel
、openNow
、radius
、rankBy
、type
、name - TextSearchRequest 接口
- RankBy 常量
- LocationBias typedef
- LocationRestriction 类型定义
- PlacesServiceStatus 常量
-
常量:
INVALID_REQUEST
、NOT_FOUND
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- PlaceSearchPagination 接口
-
属性:
hasNextPage
方法:
nextPage
- PlaceResult 接口
-
属性:
address_components
、adr_address
、aspects
、business_status
、formatted_address
、formatted_phone_number
、geometry
、html_attributions
、icon
、icon_background_color
、icon_mask_base_uri
、international_phone_number
、name
、opening_hours
、photos
、place_id
、plus_code
、price_level
、 {2,/9/}、rating
{reviews
types
url
user_ratings_total
utc_offset_minutes
vicinity
website
utc_offsetpermanently_closed PlaceAspectRating 接口- BusinessStatus 常量
- PlaceGeometry 接口
- PlaceOpeningHours 界面
-
属性:
periods
、weekday_text
、open_now方法:
isOpen
- PlaceOpeningHoursPeriod 接口
- PlaceOpeningHoursTime 界面
- PlacePlusCode 接口
- Place Photo 接口
-
属性:
height
、html_attributions
、width
方法:
getUrl
- PhotoOptions 接口
- PlaceReview 界面
-
属性:
author_name
、author_url
、language
、profile_photo_url
、rating
、relative_time_description
、text
、time
、aspects
地点自动补全服务
- AutocompleteService 类
- AutocompletionRequest 接口
-
属性:
componentRestrictions
、input
、language
、locationBias
、locationRestriction
、offset
、origin
、region
、sessionToken
、types
、
、bounds
、locationradius - AutocompleteResponse 接口
-
属性:
predictions
- QueryAutocompletionRequest 接口
- AutocompleteSessionToken 类
- ComponentRestrictions 接口
-
属性:
country
- AutocompletePrediction 界面
-
属性:
description
、distance_meters
、matched_substrings
、place_id
、structured_formatting
、terms
、types
- QueryAutocompletePrediction 界面
- PredictionTerm 接口
- PredictionSubstring 接口
- StructuredFormat 接口
地理编码器
- 地理编码器类
-
方法:
geocode
- GeocoderRequest 接口
-
属性:
address
、bounds
、componentRestrictions
、language
、location
、placeId
、region
- GeocoderComponentRestrictions 界面
- GeocoderStatus 常量
-
常量:
ERROR
、INVALID_REQUEST
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- GeocoderResponse 接口
-
属性:
results
- GeocoderResult 接口
-
属性:
address_components
、formatted_address
、geometry
、partial_match
、place_id
、plus_code
、postcode_localities
、types
- GeocoderAddressComponent 接口
- GeocoderGeometry 接口
- GeocoderLocationType 常量
路由
路线
- DirectionsService 类
-
方法:
route
- DirectionsRequest 接口
-
属性:
avoidFerries
、avoidHighways
、avoidTolls
、destination
、drivingOptions
、language
、optimizeWaypoints
、origin
、provideRouteAlternatives
、region
、transitOptions
、travelMode
、unitSystem
和waypoints
- DirectionsStatus 常量
-
常量:
INVALID_REQUEST
、MAX_WAYPOINTS_EXCEEDED
、NOT_FOUND
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
、ZERO_RESULTS
- DirectionsResult 接口
- DirectionsRenderer 类
-
方法:
getDirections
、getMap
、getPanel
、getRouteIndex
、setDirections
、setMap
、setOptions
、setPanel
、setRouteIndex
- DirectionsRendererOptions 接口
-
属性:
directions
、draggable
、hideRouteList
、infoWindow
、map
、markerOptions
、panel
、polylineOptions
、preserveViewport
、routeIndex
、suppressBicyclingLayer
、suppressInfoWindows
、suppressMarkers
和suppressPolylines
- DirectionsWaypoint 接口
- DirectionsGeocodedWaypoint 接口
- DirectionsRoute 接口
-
属性:
bounds
、copyrights
、fare
、legs
、overview_path
、overview_polyline
、summary
、warnings
、waypoint_order
- DirectionsLeg 接口
-
属性:
arrival_time
、departure_time
、distance
、duration
、duration_in_traffic
、end_address
、end_location
、start_address
、start_location
、steps
、via_waypoints
和traffic_speed_entry - DirectionsStep 界面
-
属性:
distance
、duration
、encoded_lat_lngs
、end_location
、instructions
、maneuver
、path
、start_location
、steps
、transit
、transit_details
、travel_mode
、
、start_point
、end_point
、lat_lngspolyline - DirectionsPolygon 接口
-
属性:
points
- Place 界面
- TravelMode 常量
- DrivingOptions 接口
- TrafficModel 常量
- TransitOptions 接口
- TransitMode 常量
- TransitRoutePreference 常量
- TransitFare 接口
- TransitDetails 接口
-
属性:
arrival_stop
、arrival_time
、departure_stop
、departure_time
、headsign
、headway
、line
、num_stops
、trip_short_name
- TransitStop 接口
- TransitLine 接口
-
属性:
agencies
、color
、icon
、name
、short_name
、text_color
、url
、vehicle
- TransitAgency 界面
- TransitVehicle 接口
-
属性:
icon
、local_icon
、name
、type
- VehicleType 常量
-
常量:
BUS
、CABLE_CAR
、COMMUTER_TRAIN
、FERRY
、FUNICULAR
、GONDOLA_LIFT
、HEAVY_RAIL
、HIGH_SPEED_TRAIN
、INTERCITY_BUS
、METRO_RAIL
、MONORAIL
、OTHER
、RAIL
、SHARE_TAXI
、SUBWAY
、TRAM
、TROLLEYBUS
- UnitSystem 常量
- 距离界面
- Duration 界面
- 时间界面
DirectionsTravelMode 常量DirectionsUnitSystem 常量
距离矩阵
- DistanceMatrixService 类
- DistanceMatrixRequest 接口
-
属性:
avoidFerries
、avoidHighways
、avoidTolls
、destinations
、drivingOptions
、language
、origins
、region
、transitOptions
、travelMode
、unitSystem
- DistanceMatrixResponse 接口
- DistanceMatrixResponseRow 接口
-
属性:
elements
- DistanceMatrixResponseElement 接口
- DistanceMatrixStatus 常量
-
常量:
INVALID_REQUEST
、MAX_DIMENSIONS_EXCEEDED
、MAX_ELEMENTS_EXCEEDED
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
- DistanceMatrixElementStatus 常量
海拔
- ElevationService 类
- LocationElevationRequest 接口
-
属性:
locations
- LocationElevationResponse 接口
-
属性:
results
- PathElevationRequest 接口
- PathElevationResponse 接口
-
属性:
results
- ElevationResult 接口
- ElevationStatus 常量
-
常量:
INVALID_REQUEST
、OK
、OVER_QUERY_LIMIT
、REQUEST_DENIED
、UNKNOWN_ERROR
旅程分享
地图视图
- JourneysharingMapView 类
-
属性:
anticipatedRoutePolylines
、anticipatedRoutePolylineSetup
、automaticViewportMode
、element
、enableTraffic
、locationProviders
、map
、mapOptions
、takenRoutePolylines
、takenRoutePolylineSetup
、
、locationProvider
、destinationMarkerSetup
、originMarkerSetup
、pingMarkerSetup
、successfulTaskMarkerSetup
、taskOutcomeMarkerSetup
、unsuccessfulTaskMarkerSetup
、 {2,2,9/}、vehicleMarkerSetupwaypointMarkerSetupdestinationMarkersoriginMarkerssuccessfulTaskMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkers - JourneySHAREMapViewOptions 界面
-
属性:
anticipatedRoutePolylineSetup
、automaticViewportMode
、element
、locationProviders
、mapOptions
、takenRoutePolylineSetup
、
、locationProvider
、destinationMarkerSetup
、originMarkerSetup
、pingMarkerSetup
、successfulTaskMarkerSetup
、taskOutcomeMarkerSetup
、unsuccessfulTaskMarkerSetup
、vehicleMarkerSetupwaypointMarkerSetup - AutomaticViewportMode 常量
- LocationProvider 抽象类
-
方法:
addListener
- PollingLocationProvider 抽象类
-
属性:
isPolling
、pollingIntervalMillis
事件:
ispollingchange
- PollingLocationProviderIsPollingChangeEvent 接口
-
属性:
error
身份验证
- AuthToken 接口
- AuthTokenContext 接口
- AuthTokenFetcher typedef
- AuthTokenFetcherOptions 接口
- FleetEngineServiceType 常量
-
常量:
DELIVERY_VEHICLE_SERVICE
、TASK_SERVICE
、TRIP_SERVICE
、UNKNOWN_SERVICE
界面自定义
- PolygonSetup typedef
- PolygonSetupOptions 接口
- DefaultComplicationSetupOptions 接口
MarkerSetup typedefMarkerSetupOptions 接口DefaultMarkerSetupOptions 接口- MarkerCustomizationFunctionParams 接口
- DeliveryVehicleMarkerCustomizationFunctionParams 接口
-
属性:
vehicle
- PlannedStopMarkerCustomizationFunctionParams 接口
-
属性:
stopIndex
- TaskMarkerCustomizationFunctionParams 接口
-
属性:
task
- ShipmentMarkerCustomizationFunctionParams 接口
- TripMarkerCustomizationFunctionParams 接口
-
属性:
trip
- TripWaypointMarkerCustomizationFunctionParams 接口
VehicleMarkerCustomizationFunctionParams 接口
-
属性:
vehicle
VehicleWaypointMarkerCustomizationFunctionParams 接口
Fleet Engine 实体
- 任务界面
-
属性:
attributes
、estimatedCompletionTime
、latestVehicleLocationUpdate
、name
、outcome
、outcomeLocation
、outcomeLocationSource
、outcomeTime
、plannedLocation
、remainingVehicleJourneySegments
、status
、targetTimeWindow
、trackingId
、type
、vehicleId
- TaskInfo 接口
- TaskTrackingInfo 界面
-
属性:
attributes
、estimatedArrivalTime
、estimatedTaskCompletionTime
、latestVehicleLocationUpdate
、name
、plannedLocation
、remainingDrivingDistanceMeters
、remainingStopCount
、routePolylinePoints
、state
、targetTimeWindow
、taskOutcome
、taskOutcomeTime
和trackingId
- 行程界面
-
属性:
actualDropOffLocation
、actualPickupLocation
、dropOffTime
、latestVehicleLocationUpdate
、name
、passengerCount
、pickupTime
、plannedDropOffLocation
、plannedPickupLocation
、remainingWaypoints
、status
、type
、vehicleId
- DeliveryVehicle 界面
-
属性:
attributes
、currentRouteSegmentEndPoint
、latestVehicleLocationUpdate
、name
、navigationStatus
、remainingDistanceMeters
、remainingDurationMillis
、remainingVehicleJourneySegments
- DeliveryVehicleStop 接口
- DeliveryVehicleStopState 常量
- VehicleJourneySegment 界面
- VehicleLocationUpdate 接口
- VehicleWaypoint 接口
车载界面
-
属性:
attributes
、currentRouteSegmentEndPoint
、currentRouteSegmentVersion
、currentTrips
、etaToFirstWaypoint
、latestLocation
、maximumCapacity
、name
、navigationStatus
、remainingDistanceMeters
、supportedTripTypes
、vehicleState
、vehicleType
、waypoints
、waypointsVersion
-
常量:
ARRIVED_AT_DESTINATION
、ENROUTE_TO_DESTINATION
、NO_GUIDANCE
、OFF_ROUTE
、UNKNOWN_NAVIGATION_STATUS
VehicleState 常量
VehicleType 常量
TripType 常量
TripWaypoint 接口
-
属性:
distanceMeters
、durationMillis
、location
、tripId
、waypointType
WaypointType 常量
-
常量:
DROP_OFF_WAYPOINT_TYPE
、INTERMEDIATE_DESTINATION_WAYPOINT_TYPE
、PICKUP_WAYPOINT_TYPE
、UNKNOWN_WAYPOINT_TYPE
- TimeWindow 接口
行程和订单进度
- FleetEngineTripLocationProvider 类
-
属性:
tripId
方法:
refresh
- FleetEngineTripLocationProviderOptions 接口
-
属性:
authTokenFetcher
、destinationMarkerCustomization
、originMarkerCustomization
、pollingIntervalMillis
、projectId
、tripId
、vehicleMarkerCustomization
、waypointMarkerCustomization
- FleetEngineTripLocationProviderUpdateEvent 接口
-
属性:
trip
车队跟踪 - 最后一公里车队
- FleetEngineDeliveryVehicleLocationProvider 类
-
属性:
deliveryVehicleId
、shouldShowOutcomeLocations
、shouldShowTasks
、staleLocationThresholdMillis
、taskFilterOptions
- FleetEngineDeliveryVehicleLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleId
、deliveryVehicleMarkerCustomization
、plannedStopMarkerCustomization
、pollingIntervalMillis
、projectId
、shouldShowOutcomeLocations
、shouldShowTasks
、staleLocationThresholdMillis
、taskFilterOptions
、taskMarkerCustomization
和taskOutcomeMarkerCustomization
- FleetEngineTaskFilterOptions 接口
- FleetEngineDeliveryVehicleLocationProviderUpdateEvent 接口
- FleetEngineDeliveryFleetLocationProvider 类
-
属性:
deliveryVehicleFilter
、locationRestriction
、staleLocationThresholdMillis
事件:
update
- FleetEngineDeliveryFleetLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleFilter
、deliveryVehicleMarkerCustomization
、locationRestriction
、projectId
、staleLocationThresholdMillis
- FleetEngineDeliveryFleetLocationProviderUpdateEvent 接口
车队跟踪 - 按需乘车和送货(Beta 版)
FleetEngineVehicleLocationProvider 类
FleetEngineVehicleLocationProviderOptions 接口
-
属性:
authTokenFetcher
、destinationMarkerCustomization
、intermediateDestinationMarkerCustomization
、originMarkerCustomization
、pollingIntervalMillis
、projectId
、staleLocationThresholdMillis
、vehicleId
、vehicleMarkerCustomization
FleetEngineVehicleLocationProviderUpdateEvent 接口
FleetEngineFleetLocationProvider 类
-
属性:
locationRestriction
、staleLocationThresholdMillis
、vehicleFilter
事件:
update
FleetEngineFleetLocationProviderOptions 接口
-
属性:
authTokenFetcher
、locationRestriction
、projectId
、staleLocationThresholdMillis
、vehicleFilter
、vehicleMarkerCustomization
FleetEngineFleetLocationProviderUpdateEvent 接口
-
属性:
vehicles
货运跟踪
- FleetEngineShipmentLocationProvider 类
-
属性:
trackingId
方法:
refresh
- FleetEngineShipmentLocationProviderOptions 接口
-
属性:
authTokenFetcher
、deliveryVehicleMarkerCustomization
、destinationMarkerCustomization
、pollingIntervalMillis
、projectId
、trackingId
- FleetEngineShipmentLocationProviderUpdateEvent 接口
Local Context(Beta 版)
地图视图
LocalContextMapView 类
-
属性:
directionsOptions
、element
、isTransitioningMapBounds
、locationBias
、locationRestriction
、maxPlaceCount
、placeTypePreferences
方法:
addListener
、hidePlaceDetailsView
、search
事件:
error
、placedetailsviewhidestart
、placedetailsviewshowstart
LocalContextMapViewOptions 接口
-
属性:
directionsOptions
、element
、locationBias
、locationRestriction
、map
、maxPlaceCount
、pinOptionsSetup
、placeChooserViewSetup
、placeDetailsViewSetup
、placeTypePreferences
PlaceTypePreference typedef
MapDirectionsOptions 类
-
方法:
addListener
MapDirectionsOptionsLiteral 接口
-
属性:
origin
PinOptions 接口
- PlaceChooserViewSetupOptions 界面
PlaceChooserLayoutMode 常量
PlaceChooserPosition 常量
- PlaceDetailsViewSetupOptions 接口
PlaceDetailsLayoutMode 常量
-
常量:
INFO_WINDOW
、SHEET
PlaceDetailsPosition 常量