Google Maps JavaScript API V3 Reference

Dernière mise à jour le mardi 11 avril 2023

Il s'agit d'un index de toutes les classes, méthodes et interfaces de la version 3.52 de l'API Maps JavaScript.

Pour en savoir plus, consultez les notes de version et la gestion des versions.

Cliquez sur le nom d'un élément pour afficher la documentation détaillée.

Concepts généraux

google.maps.

Espace de noms google.maps

Méthodes statiques : importLibrary

Constantes : version

Interface CoreLibrary

Propriétés : ControlPosition, event, LatLng, LatLngAltitude, LatLngBounds, MapsNetworkError, MapsNetworkErrorEndpoint, MapsRequestError, MapsServerError, MVCArray, MVCObject, Point, Settings, Size, SymbolPath, UnitSystem

Interface MapsLibrary

Propriétés : BicyclingLayer, Circle, Data, FeatureType, GroundOverlay, ImageMapType, InfoWindow, KmlLayer, KmlLayerStatus,Map, MapTypeControlStyle, MapTypeId, MapTypeRegistry, MaxZoomService,MaxZoomStatus,OverlayView, Polygon,Polyline,, , RectangleRenderingTypeStrokePositionStyledMapTypeTrafficLayerTransitLayerWebGLOverlayView

Interface PlacesLibrary

Propriétés : AddressComponent, Attribution, Autocomplete, AutocompleteService, AutocompleteSessionToken, BusinessStatus, OpeningHours, OpeningHoursPeriod, OpeningHoursPoint, Photo, PhotoAttribution, Place, PlacesService, PlacesServiceStatus, PlusCode, PriceLevel, RankBy, Review, SearchBox

Interface GeocodingLibrary

Propriétés : Geocoder, GeocoderLocationType, GeocoderStatus

Interface RoutesLibrary

Propriétés : DirectionsRenderer, DirectionsService, DirectionsStatus, DistanceMatrixElementStatus, DistanceMatrixService, DistanceMatrixStatus, TrafficModel, TransitMode, TransitRoutePreference, TravelMode, VehicleType

Interface MarkerLibrary

Propriétés : AdvancedMarkerView, Animation, CollisionBehavior, Marker, PinView

Interface GeometryLibrary

Propriétés : encoding, poly, spherical

Interface ElevationLibrary

Propriétés : ElevationService, ElevationStatus

Interface StreetViewLibrary

Propriétés : InfoWindow, OverlayView, StreetViewCoverageLayer, StreetViewPanorama, StreetViewPreference, StreetViewService, StreetViewSource, StreetViewStatus

Interface JourneyShareLibrary

Propriétés : AutomaticViewportMode, DeliveryVehicleStopState, FleetEngineDeliveryFleetLocationProvider, FleetEngineDeliveryVehicleLocationProvider, FleetEngineServiceType, FleetEngineShipmentLocationProvider, FleetEngineTripLocationProvider, JourneySharingMapView

Interface DrawingLibrary

Propriétés : DrawingManager, OverlayType

InterfaceVisualizationLibrary

Propriétés : HeatmapLayer

Paramètres (bêta)

BêtaClasse de paramètres

Méthodes statiques : BetagetInstance

Propriétés : BetaexperienceIds

Système d'événements

Classe d'événement

Méthodes statiques : addListener, addListenerOnce, clearInstanceListeners, clearListeners, hasListeners, removeListener, trigger, addDomListener, addDomListenerOnce

Interface MapsEventListener

Méthodes : remove

Classe MVCObject

Méthodes : addListener, bindTo, get, notify, set, setValues, unbind, unbindAll

Classe MVCArray

Méthodes : clear, forEach, getArray, getAt, getLength, insertAt, pop, push, removeAt, setAt

Événements : insert_at, remove_at, set_at

Interface ErrorEvent

Propriétés : error

Erreurs

Classe MapsNetworkError

Propriétés : code, endpoint

Classe MapsRequestError
Classe MapsServerError
Constantes MapsNetworkErrorEndpoint

Constantes : 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_FIND_PLACE_FROM_QUERYPLACES_NEARBY_SEARCHSTREETVIEW_GET_PANORAMA

Maps

Maps

Classe de carte

Propriétés : controls, data, mapTypes, overlayMapTypes

?fitBoundsgetBoundsgetCentergetClickableIconsgetDivBetagetFeatureLayergetHeadingBetagetMapCapabilitiesgetMapTypeIdgetProjectiongetRenderingTypegetStreetViewgetTiltgetZoommoveCamerapanBypanTopanToBoundssetCentersetClickableIconssetHeadingsetMapTypeIdsetOptionssetStreetViewsetTiltsetZoom

Constantes : DEMO_MAP_ID

Événements : bounds_changed, center_changed, click, contextmenu, dblclick, drag, dragend, dragstart, heading_changed, idle, isfractionalzoomenabled_changed, Betamapcapabilities_changed, maptypeid_changed, mousemove, mouseout,mouseover, projection_changed, renderingtype_changed,tilesloaded, tilt_changedzoom_changedrightclick

Interface MapOptions

?backgroundColorcenterclickableIconscontrolSizedisableDefaultUIdisableDoubleClickZoomdraggableCursordraggingCursorfullscreenControlfullscreenControlOptionsgestureHandlingheadingisFractionalZoomEnabledkeyboardShortcutsmapIdmapTypeControlmapTypeControlOptionsmapTypeIdmaxZoomminZoomnoClearpanControlpanControlOptionsrestrictionrotateControlrotateControlOptionsscaleControlscaleControlOptionsscrollwheelstreetViewstreetViewControlstreetViewControlOptionsstylestiltzoomzoomControlzoomControlOptionsdraggable

Interface MapTypeStyle

Propriétés : elementType, featureType, stylers

Interface MapMouseEvent

Propriétés : domEvent, latLng

Méthodes : stop

Interface IconMouseEvent

Propriétés : placeId

Constantes MapTypeId

Constantes : HYBRID, ROADMAP, SATELLITE, TERRAIN

Classe MapTypeRegistry

Méthodes : set

Interface MapRestriction

Propriétés : latLngBounds, strictBounds

Classe LayerLayer

Méthodes : getMap, setMap, setOptions

Interface TrafficLayerOptions

Propriétés : autoRefresh, map

Classe TransitLayer

Méthodes : getMap, setMap

Classe BicyclingLayer

Méthodes : getMap, setMap

BêtaInterface CameraOptions

Propriétés : center, heading, tilt, zoom

Interface Région de visibilité

Propriétés : farLeft, farRight, latLngBounds, nearLeft, nearRight

Constantes de Rendu

Constantes : RASTER, UNINITIALIZED, VECTOR

BêtaInterface MapCapabilities

Propriétés : isAdvancedMarkersAvailable, isDataDrivenStylingAvailable

WebGL

Classe WebGLOverlayView

Méthodes : getMap, onAdd, onContextLost, onContextRestored, onDraw, onRemove, onStateUpdate, requestRedraw, requestStateUpdate, setMap

Interface WebGLDrawOptions

Propriétés : gl, transformer

Interface WebGLStateOptions

Propriétés : gl

Interface CoordinateTransformer

Méthodes : fromLatLngAltitude, getCameraParams

Interface CameraParams

Propriétés : center, heading, tilt, zoom

Coordonnées

Classe LatLng

Méthodes : equals, lat, lng, toJSON, toString, toUrlValue

Interface LatLngLiteral

Propriétés : lat, lng

Classe LatLngBounds

Méthodes : contains, equals, extend, getCenter, getNorthEast, getSouthWest, intersects, isEmpty, toJSON, toSpan, toString, toUrlValue, union

Constantes : MAX_BOUNDS

Interface LatLngBoundsLiteral

Propriétés : east, north, south, west

Classe LatLngAltitude

Propriétés : altitude, lat, lng

Méthodes : equals, toJSON

Interface LatLngAltitudeLiteral

Propriétés : altitude, lat, lng

Classe ponctuelle

Propriétés : x, y

Méthodes : equals, toString

Classe de taille

Propriétés : height, width

Méthodes : equals, toString

Marge intérieure de l'interface

Propriétés : bottom, left, right, top

Interface circulaire

Propriétés : center, radius

Style basé sur les données (bêta)

BêtaInterface FeatureLayer

Propriétés : featureType, isAvailable, style

Méthodes : addListener

BêtaConstantes FeatureType

Constantes : ADMINISTRATIVE_AREA_LEVEL_1, ADMINISTRATIVE_AREA_LEVEL_2, COUNTRY, LOCALITY, POSTAL_CODE

BêtaFeatureStyleFunction typedef.
BêtaInterface FeatureStyleFunctionOptions

Propriétés : feature

BêtaInterface FeatureStyleOptions

Propriétés : fillColor, fillOpacity, strokeColor, strokeOpacity, strokeWeight

BêtaInterface de fonctionnalité

Propriétés : featureType

BêtaInterface PlaceFeature

Propriétés : placeId

Méthodes : fetchPlace

BêtaInterface FeatureMouseEvent

Propriétés : features

Commandes

Interface FullscreenControlOptions

Propriétés : position

Interface MapTypeControlOptions

Propriétés : mapTypeIds, position, style

Constantes MapTypeControlStyle

Constantes : DEFAULT, DROPDOWN_MENU, HORIZONTAL_BAR

Interface MotionTrackingControlOptions

Propriétés : position

Interface PanControlOptions

Propriétés : position

Interface RotationControlOptions

Propriétés : position

Interface ScaleControlOptions

Propriétés : style

Constantes ScaleControlStyle

Constantes : DEFAULT

Interface StreetViewControl

Propriétés : position

Interface ZoomControlOptions

Propriétés : position

Constantes ControlPosition

Constantes : BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, LEFT_BOTTOM, LEFT_CENTER, LEFT_TOP, RIGHT_BOTTOM, RIGHT_CENTER, RIGHT_TOP, TOP_CENTER, TOP_LEFT, TOP_RIGHT

Bibliothèque Geometry

espace de noms d'encodage

Méthodes statiques : decodePath, encodePath

espace de noms sphérique

Méthodes statiques : computeArea, computeDistanceBetween, computeHeading, computeLength, computeOffset, computeOffsetOrigin, computeSignedArea, interpolate

espace de noms poly

Méthodes statiques : containsLocation, isLocationOnEdge

Dessiner sur la carte

Marker

Classe du repère

?getAnimationgetClickablegetCursorgetDraggablegetIcongetLabelgetMapgetOpacitygetPositiongetShapegetTitlegetVisiblegetZIndexsetAnimationsetClickablesetCursorsetDraggablesetIconsetLabelsetMapsetOpacitysetOptionssetPositionsetShapesetTitlesetVisiblesetZIndex

Constantes : MAX_ZINDEX

Événements : 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, visible_changedzindex_changedrightclick

Interface MarkerOptions

Propriétés : anchorPoint, animation, clickable, BetacollisionBehavior, crossOnDrag, cursor, draggable, icon, label, map, opacity, optimized, position, shape, title, visible, zIndex

BêtaConstantes CollisionBehavior

Constantes : OPTIONAL_AND_HIDES_LOWER_PRIORITY, REQUIRED, REQUIRED_AND_HIDES_OPTIONAL

Icône

Propriétés : anchor, labelOrigin, origin, scaledSize, size, url

Interface MarkerLabel

Propriétés : className, color, fontFamily, fontSize, fontWeight, text

Interface MarkerShape

Propriétés : coords, type

Interface des symboles

Propriétés : anchor, fillColor, fillOpacity, labelOrigin, path, rotation, scale, strokeColor, strokeOpacity, strokeWeight

Constantes SymbolPath

Constantes : BACKWARD_CLOSED_ARROW, BACKWARD_OPEN_ARROW, CIRCLE, FORWARD_CLOSED_ARROW, FORWARD_OPEN_ARROW

Constantes d'animation

Constantes : BOUNCE, DROP

Repères avancés (bêta)

BêtaClasse AdvancedMarkerView

Propriétés : collisionBehavior, content, gmpDraggable, map, position, title, zIndex, draggable

Méthodes : addListener

Événements : click, drag, dragend, dragstart

BêtaInterface AdvancedMarkerViewOptions

Propriétés : collisionBehavior, content, element, gmpDraggable, map, position, title, zIndex, draggable

BêtaClasse PinView

Propriétés : background, borderColor, element, glyph, glyphColor, scale

Méthodes : addListener

BêtaInterface PinViewOptions

Propriétés : background, borderColor, element, glyph, glyphColor, scale

Fenêtre d'informations

Classe InfoWindow

Méthodes : close, focus, getContent, getPosition, getZIndex, open, setContent, setOptions, setPosition, setZIndex

Événements : closeclick, content_changed, domready, position_changed, visible, zindex_changed

Interface InfoWindowOptions

Propriétés : ariaLabel, content, disableAutoPan, maxWidth, minWidth, pixelOffset, position, zIndex

Interface InfoWindowOpenOptions

Propriétés : anchor, map, shouldFocus

Polygones

Classe de polylignes

Méthodes : getDraggable, getEditable, getMap, getPath, getVisible, setDraggable, setEditable, setMap, setOptions, setPath, setVisible

Événements : click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

Interface PolylineOptions

Propriétés : clickable, draggable, editable, geodesic, icons, map, path, strokeColor, strokeOpacity, strokeWeight, visible, zIndex

Interface IconSequence

Propriétés : fixedRotation, icon, offset, repeat

Classe Polygone

Méthodes : getDraggable, getEditable, getMap, getPath, getPaths, getVisible, setDraggable, setEditable, setMap, setOptions, setPath, setPaths, setVisible

Événements : click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

Interface PolygonOptions

Propriétés : clickable, draggable, editable, fillColor, fillOpacity, geodesic, map, paths, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

Interface PolyMouseEvent

Propriétés : edge, path, vertex

Classe rectangulaire

Méthodes : getBounds, getDraggable, getEditable, getMap, getVisible, setBounds, setDraggable, setEditable, setMap, setOptions, setVisible

Événements : bounds_changed, click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

Interface RectangleOptions

Propriétés : bounds, clickable, draggable, editable, fillColor, fillOpacity, map, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

Classe circulaire

Méthodes : getBounds, getCenter, getDraggable, getEditable, getMap, getRadius, getVisible, setCenter, setDraggable, setEditable, setMap, setOptions, setRadius, setVisible

Événements : center_changed, click, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, radius_changed, rightclick

Interface de CircleOptions

Propriétés : center, clickable, draggable, editable, fillColor, fillOpacity, map, radius, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

Constantes StrokePosition

Constantes : CENTER, INSIDE, OUTSIDE

Données

Classe de données

Méthodes : add, addGeoJson, contains, forEach, getControlPosition, getControls, getDrawingMode, getFeatureById, getMap, getStyle, loadGeoJson, overrideStyle, remove, revertStyle, setControlPosition, setControls, setDrawingMode, setMap,setStyle, toGeoJson

Événements : addfeature, click, contextmenu, dblclick, mousedown, mouseout, mouseover, mouseup, removefeature, removeproperty, setgeometry, setproperty, rightclick

Interface Data.DataOptions

Propriétés : controlPosition, controls, drawingMode, featureFactory, map, style

Interface Data.GeoJsonOptions

Propriétés : idPropertyName

Interface Data.StyleOptions

Propriétés : animation, clickable, cursor, draggable, editable, fillColor, fillOpacity, icon, icons,label, opacity, shape, strokeColor, strokeOpacity, strokeWeight, title, visible, zIndex

Data.StylingFunction typedef
Classe Data.Feature

Méthodes : forEachProperty, getGeometry, getId, getProperty, removeProperty, setGeometry, setProperty, toGeoJson

Événements : removeproperty, setgeometry, setproperty

Interface Data.FeatureOptions

Propriétés : geometry, id, properties

Interface Data.Geometry

Méthodes : forEachLatLng, getType

Classe Data.Point

Méthodes : forEachLatLng, get, getType

Classe Data.MultiPoint

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Classe Data.LineString

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Classe Data.MultiLineString

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Classe Data.LinearRing

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Classe Data.Polygon

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Classe Data.MultiPolygon

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Classe Data.GeometryCollection

Méthodes : forEachLatLng, getArray, getAt, getLength, getType

Interface Data.MouseEvent

Propriétés : feature

Interface Data.AddFeatureEvent

Propriétés : feature

Interface Data.RemoveFeatureEvent

Propriétés : feature

Interface Data.SetGeometryEvent

Propriétés : feature, newGeometry, oldGeometry

Interface Data.SetPropertyEvent

Propriétés : feature, name, newValue, oldValue

Interface Data.RemovePropertyEvent

Propriétés : feature, name, oldValue

Éléments DOM

Classe OverlayView

Méthodes statiques : preventMapHitsAndGesturesFrom, preventMapHitsFrom

Méthodes : draw, getMap, getPanes, getProjection, onAdd, onRemove, setMap

Interface MapPanes

Propriétés : floatPane, mapPane, markerLayer, overlayLayer, overlayMouseTarget

Interface MapCanvasProjection

Méthodes : fromContainerPixelToLatLng, fromDivPixelToLatLng, fromLatLngToContainerPixel, fromLatLngToDivPixel, getVisibleRegion, getWorldWidth

KML

Classe KmlLayer

Méthodes : getDefaultViewport, getMap, getMetadata, getStatus, getUrl, getZIndex, setMap, setOptions, setUrl, setZIndex

Événements : click, defaultviewport_changed, status_changed

Interface KmlLayerOptions

Propriétés : clickable, map, preserveViewport, screenOverlays, suppressInfoWindows, url, zIndex

Interface KmlLayerMetadata

Propriétés : author, description, hasScreenOverlays, name, snippet

Constantes KmlLayerStatus

Constantes : DOCUMENT_NOT_FOUND, DOCUMENT_TOO_LARGE, FETCH_ERROR, INVALID_DOCUMENT, INVALID_REQUEST, LIMITS_EXCEEDED, OK, TIMED_OUT, UNKNOWN

Interface KmlMouseEvent

Propriétés : featureData, latLng, pixelOffset

Interface KmlFeatureData

Propriétés : author, description, id, infoWindowHtml, name, snippet

Interface de KmlAuthor

Propriétés : email, name, uri

Superpositions d'images

Interface MapType

Propriétés : alt, maxZoom, minZoom, name, projection, radius, tileSize

Méthodes : getTile, releaseTile

Interface de projection

Méthodes : fromLatLngToPoint, fromPointToLatLng

Classe ImageMapType

Propriétés : alt, maxZoom, minZoom, name, projection, radius, tileSize

Méthodes : getOpacity, getTile, releaseTile, setOpacity

Événements : tilesloaded

Interface ImageMapTypeOptions

Propriétés : alt, getTileUrl, maxZoom, minZoom, name, opacity, tileSize

Classe GroundOverlay

Méthodes : getBounds, getMap, getOpacity, getUrl, setMap, setOpacity

Événements : click, dblclick

Interface GroundOverlayOptions

Propriétés : clickable, map, opacity

Classe StyledMapType

Propriétés : alt, maxZoom, minZoom, name, projection, radius, tileSize

Méthodes : getTile, releaseTile

InterfacedStyleTypeOptions

Propriétés : alt, maxZoom, minZoom, name

Bibliothèque Drawing

Classe DrawingManager

Méthodes : getDrawingMode, getMap, setDrawingMode, setMap, setOptions

Événements : circlecomplete, markercomplete, overlaycomplete, polygoncomplete, polylinecomplete, rectanglecomplete

Interface DrawingManagerOptions

Propriétés : circleOptions, drawingControl, drawingControlOptions, drawingMode, map, markerOptions, polygonOptions, polylineOptions, rectangleOptions

Interface DrawingControlOptions

Propriétés : drawingModes, position

Interface OverlayCompleteEvent

Propriétés : overlay, type

Constantes SuperpositionType

Constantes : CIRCLE, MARKER, POLYGON, POLYLINE, RECTANGLE

Cartes de densité

Classe HeatLayerLayer

Méthodes : getData, getMap, setData, setMap, setOptions

Interface HeatmapLayerOptions

Propriétés : data, dissipating, gradient, map, maxIntensity, opacity, radius

Interface WeightedLocation

Propriétés : location, weight

Zoom max.

Classe MaxZoomService

Méthodes : getMaxZoomAtLatLng

Interface MaxZoomResult

Propriétés : status, zoom

Constantes MaxZoomStatus

Constantes : ERROR, OK

Street View

Affichage

Classe StreetViewPanorama

Propriétés : controls

Méthodes : focus, getLinks, getLocation, getMotionTracking, getPano, getPhotographerPov, getPosition, getPov, getStatus, getVisible, getZoom, registerPanoProvider, setLinks, setMotionTracking, setOptions, setPano, setPosition, setPov,setVisible, setZoom

Événements : closeclick, pano_changed, position_changed, pov_changed, resize, status_changed, visible_changed, zoom_changed

Interface StreetViewPanoramaOptions

Propriétés : addressControl, addressControlOptions, clickToGo, controlSize, disableDefaultUI, disableDoubleClickZoom, enableCloseButton, fullscreenControl, fullscreenControlOptions,imageDateControl, linksControl, motionTracking, motionTrackingControl, motionTrackingControlOptions,panControl,panControlOptions, pano,position,, , povscrollwheelshowRoadLabelsvisiblezoomzoomControlzoomControlOptions

Interface StreetViewAddressControlOptions

Propriétés : position

Interface PanoProviderOptions

Propriétés : cors

Interface StreetViewTileData

Propriétés : centerHeading, tileSize, worldSize

Méthodes : getTileUrl

Interface StreetViewPov

Propriétés : heading, pitch

Classe StreetViewCoverageLayer

Méthodes : getMap, setMap

Service

Classe StreetViewService

Méthodes : getPanorama

Constantes StreetViewStatus

Constantes : OK, UNKNOWN_ERROR, ZERO_RESULTS

Interface StreetViewLocationRequest

Propriétés : location, preference, radius, source

Interface StreetViewPanoRequest

Propriétés : pano

Interface StreetViewResponse

Propriétés : data

Interface StreetViewLocation

Propriétés : description, latLng, pano, shortDescription

Constantes StreetViewPreference

Constantes : BEST, NEAREST

Constantes StreetViewSource

Constantes : DEFAULT, OUTDOOR

Interface StreetViewPanoramaData

Propriétés : copyright, imageDate, links, location, tiles

Propriétés : description, heading, pano

Places

Widgets Places

AlphaClasse PlaceAutocompleteElement

Propriétés : element, inputElement

Méthodes : addListener

Événements : gmp-placeselect, gmp-requesterror

AlphaInterface PlaceAutocompleteElementOptions

Propriétés : componentRestrictions, element, inputElement, locationBias, locationRestriction, requestedLanguage, requestedRegion, types

Cours de saisie semi-automatique

Méthodes : getBounds, getFields, getPlace, setBounds, setComponentRestrictions, setFields, setOptions, setTypes

Événements : place_changed

Interface AutocompleteOptions

Propriétés : bounds, componentRestrictions, fields, strictBounds, types, placeIdOnly

Méthodes : getBounds, getPlaces, setBounds

Événements : places_changed

Interface SearchBoxOptions

Propriétés : bounds

Place (bêta)

BêtaClasse Place

Méthodes statiques : BetafindPlaceFromPhoneNumber, BetafindPlaceFromQuery

?addressComponentsadrFormatAddressattributionsbusinessStatusdisplayNameformattedAddressgoogleMapsURIhasCurbsidePickuphasDeliveryhasDineInhasTakeouthasWheelchairAccessibleEntranceiconBackgroundColoridinternationalPhoneNumberisReservablelocationnationalPhoneNumberopeningHoursphotosplusCodepriceLevelratingrequestedLanguagerequestedRegionreviewsservesBeerservesBreakfastservesBrunchservesDinnerservesLunchservesVegetarianFoodservesWinesvgIconMaskURItypesuserRatingCountutcOffsetMinutesviewportwebsiteURI

Méthodes : BetafetchFields, BetagetNextOpeningTime, BetaisOpen

BêtaInterface PlaceOptions

Propriétés : id, requestedLanguage, requestedRegion

BêtaClasse AddressComponent

Propriétés : longText, shortText, types

BêtaClasse d'attribution

Propriétés : provider, providerURI

BêtaInterface FetchFieldsRequest

Propriétés : fields, sessionToken

BêtaClasse d'ouverture

Propriétés : periods, weekdayDescriptions

BêtaClasse OpeningHoursPeriod

Propriétés : close, open

BêtaClasse OpeningHoursPoint

Propriétés : day, hour, minute

BêtaCours photo

Propriétés : attributions, heightPx, widthPx

Méthodes : getURI

BêtaClasse PhotoAttribution

Propriétés : author, authorURI

BêtaClasse PlusCode

Propriétés : compoundCode, globalCode

BêtaRevoir le cours

Propriétés : author, authorPhotoURI, authorURI, publishTime, rating, relativePublishTimeDescription, text, textLanguageCode

BêtaConstantes PriceLevel

Constantes : EXPENSIVE, FREE, INEXPENSIVE, MODERATE, VERY_EXPENSIVE

Service Places

Classe PlacesService

Méthodes : findPlaceFromPhoneNumber, findPlaceFromQuery, getDetails, nearbySearch, textSearch

Interface PlaceDetailsRequest

Propriétés : fields, language, placeId, region, sessionToken

Interface FindPlaceFromPhoneNumberRequest

Propriétés : fields, language, locationBias, phoneNumber

Interface FindPlaceFromQueryRequest

Propriétés : fields, language, locationBias, query

Interface PlaceSearchRequest

Propriétés : bounds, keyword, language, location, maxPriceLevel, minPriceLevel, openNow, radius, rankBy, type, name

Interface TextSearchRequest

Propriétés : bounds, language, location, query, radius, region, type

Constantes RankBy

Constantes : DISTANCE, PROMINENCE

LocationBias typedef
ZoneRestriction typedef
Constantes PlacesServiceStatus

Constantes : INVALID_REQUEST, NOT_FOUND, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR, ZERO_RESULTS

Interface PlaceSearchPagination

Propriétés : hasNextPage

Méthodes : nextPage

Interface 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

Interface PlaceAspectRating

Propriétés : rating, type

Constantes BusinessStatus

Constantes : CLOSED_PERMANENTLY, CLOSED_TEMPORARILY, OPERATIONAL

Interface PlaceGeometry

Propriétés : location, viewport

Interface PlaceOpeningHours

Propriétés : periods, weekday_text, open_now

Méthodes : isOpen

Interface PlaceOpeningHoursPeriod

Propriétés : close, open

Interface PlaceOpeningHoursTime

Propriétés : day, hours, minutes, nextDate, time

Interface PlacePlusCode

Propriétés : compound_code, global_code

Interface PlacePhoto

Propriétés : height, html_attributions, width

Méthodes : getUrl

Interface PhotoOptions

Propriétés : maxHeight, maxWidth

Interface PlaceReview

Propriétés : author_name, author_url, language, profile_photo_url, rating, relative_time_description, text, time, aspects

Service Places Autocomplete

Classe AutocompleteService

Méthodes : getPlacePredictions, getQueryPredictions

Interface AutocompleteRequest

Propriétés : bounds, componentRestrictions, input, language, location, offset, origin, radius, region, sessionToken, types

Interface AutocompleteResponse

Propriétés : predictions

Interface QueryAutocompletionRequest

Propriétés : bounds, input, location, offset, radius

Classe AutocompleteSessionToken
Interface ComponentRestrictions

Propriétés : country

Interface AutocompletePrediction

Propriétés : description, distance_meters, matched_substrings, place_id, structured_formatting, terms, types

Interface QueryAutocompletePrediction

Propriétés : description, matched_substrings, place_id, terms

Interface PredictionTerm

Propriétés : offset, value

Interface PredictionSubstring

Propriétés : length, offset

Interface de Structuredformat

Propriétés : main_text, main_text_matched_substrings, secondary_text

Geocoder

Classe Geocoder

Méthodes : geocode

Interface GeocoderRequest

Propriétés : address, bounds, componentRestrictions, language, location, placeId, region

Interface GeocoderComponentRestrictions

Propriétés : administrativeArea, country, locality, postalCode, route

Constantes GeocoderStatus

Constantes : ERROR, INVALID_REQUEST, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR, ZERO_RESULTS

Interface GeocoderResponse

Propriétés : results

Interface GeocoderResult

Propriétés : address_components, formatted_address, geometry, partial_match, place_id, plus_code, postcode_localities, types

Interface GeocoderAddressComponent

Propriétés : long_name, short_name, types

Interface GeocoderGeometry

Propriétés : bounds, location, location_type, viewport

Constantes GeocoderLocationType

Constantes : APPROXIMATE, GEOMETRIC_CENTER, RANGE_INTERPOLATED, ROOFTOP

Routes

Directions

Classe DirectionsService

Méthodes : route

Interface DirectionsRequest

Propriétés : avoidFerries, avoidHighways, avoidTolls, destination, drivingOptions, language, optimizeWaypoints, origin, provideRouteAlternatives, region, transitOptions, travelMode, unitSystem, waypoints

Constantes DirectionsStatus

Constantes : INVALID_REQUEST, MAX_WAYPOINTS_EXCEEDED, NOT_FOUND, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR, ZERO_RESULTS

Interface DirectionsResult

Propriétés : available_travel_modes, geocoded_waypoints, routes

Classe DirectionsRenderer

Méthodes : getDirections, getMap, getPanel, getRouteIndex, setDirections, setMap, setOptions, setPanel, setRouteIndex

Événements : directions_changed

Interface DirectionsRendererOptions

Propriétés : directions, draggable, hideRouteList, infoWindow, map, markerOptions, panel, polylineOptions, preserveViewport, routeIndex, suppressBicyclingLayer, suppressInfoWindows, suppressMarkers, suppressPolylines

Interface DirectionsWaypoint

Propriétés : location, stopover

Interface DirectionsGeocodedWaypoint

Propriétés : partial_match, place_id, types

Interface DirectionsRoute

Propriétés : bounds, copyrights, fare, legs, overview_path, overview_polyline, summary, warnings, waypoint_order

Interface DirectionsLeg

Propriétés : arrival_time, departure_time, distance, duration, duration_in_traffic, end_address, end_location, start_address, start_location, steps, via_waypoints, traffic_speed_entry

Interface DirectionsStep

Propriétés : distance, duration, encoded_lat_lngs, end_location, instructions, maneuver, path, start_location, steps, transit, transit_details, travel_mode, start_point, end_point, lat_lngs, polyline

Interface DirectionsPolyline

Propriétés : points

Place Interface

Propriétés : location, placeId, query

Constantes TravelMode

Constantes : BICYCLING, DRIVING, TRANSIT, WALKING

Interface DrivingOptions

Propriétés : departureTime, trafficModel

Constantes TrafficModel

Constantes : BEST_GUESS, OPTIMISTIC, PESSIMISTIC

Interface TransitOptions

Propriétés : arrivalTime, departureTime, modes, routingPreference

Constantes TransitMode

Constantes : BUS, RAIL, SUBWAY, TRAIN, TRAM

Constantes TransitRoutePreference

Constantes : FEWER_TRANSFERS, LESS_WALKING

Interface TransitFare

Propriétés : currency, value

Interface TransitDetails

Propriétés : arrival_stop, arrival_time, departure_stop, departure_time, headsign, headway, line, num_stops, trip_short_name

Interface TransitStop

Propriétés : location, name

Interface TransitLine

Propriétés : agencies, color, icon, name, short_name, text_color, url, vehicle

Interface TransitAgency

Propriétés : name, phone, url

Interface TransitVehicle

Propriétés : icon, local_icon, name, type

Constantes VehicleType

Constantes : 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

Constantes UnitSystem

Constantes : IMPERIAL, METRIC

Interface Distance

Propriétés : text, value

Interface de durée

Propriétés : text, value

Interface Heure

Propriétés : text, time_zone, value

Constantes DirectionsTravelMode
Constantes DirectionsUnitSystem

Distance Matrix

Classe DistanceMatrixService

Méthodes : getDistanceMatrix

Interface DistanceMatrixRequest

Propriétés : avoidFerries, avoidHighways, avoidTolls, destinations, drivingOptions, language, origins, region, transitOptions, travelMode, unitSystem

Interface DistanceMatrixResponse

Propriétés : destinationAddresses, originAddresses, rows

Interface DistanceMatrixResponseRow

Propriétés : elements

Interface DistanceMatrixResponseElement

Propriétés : distance, duration, duration_in_traffic, fare, status

Constantes DistanceMatrixStatus

Constantes : INVALID_REQUEST, MAX_DIMENSIONS_EXCEEDED, MAX_ELEMENTS_EXCEEDED, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR

Constantes DistanceMatrixElementStatus

Constantes : NOT_FOUND, OK, ZERO_RESULTS

Elevation

Classe ElevationService

Méthodes : getElevationAlongPath, getElevationForLocations

Interface LocationElevationRequest

Propriétés : locations

Interface LocationElevationResponse

Propriétés : results

Interface PathElevationRequest

Propriétés : path, samples

Interface PathElevationResponse

Propriétés : results

Interface ElevationResult

Propriétés : elevation, location, resolution

Constantes ElevationStatus

Constantes : INVALID_REQUEST, OK, OVER_QUERY_LIMIT, REQUEST_DENIED, UNKNOWN_ERROR

Partage de trajet

Vue Plan

Classe PartageJourView

Propriétés : anticipatedRoutePolylines, anticipatedRoutePolylineSetup, automaticViewportMode, element, enableTraffic, locationProvider, map, mapOptions, takenRoutePolylines,takenRoutePolylineSetup, destinationMarkerSetup, originMarkerSetup, pingMarkerSetup, successfulTaskMarkerSetup,taskOutcomeMarkerSetup,unsuccessfulTaskMarkerSetup, vehicleMarkerSetup,waypointMarkerSetup,, , destinationMarkersoriginMarkerssuccessfulTaskMarkerstaskOutcomeMarkersunsuccessfulTaskMarkersvehicleMarkerswaypointMarkers

Interface JourneyShareMapViewOptions

Propriétés : anticipatedRoutePolylineSetup, automaticViewportMode, element, locationProvider, mapOptions, takenRoutePolylineSetup, destinationMarkerSetup, originMarkerSetup, pingMarkerSetup, successfulTaskMarkerSetup, taskOutcomeMarkerSetup, unsuccessfulTaskMarkerSetup, vehicleMarkerSetup, waypointMarkerSetup

Constantes AutoViewportMode

Constantes : FIT_ANTICIPATED_ROUTE, NONE

Classe abstraite LocationProvider

Méthodes : addListener

Classe abstraite PollingLocationProvider

Propriétés : isPolling, pollingIntervalMillis

Événements : ispollingchange

Interface PollingLocationProviderIsPollingChangeEvent

Propriétés : error

Authentification

Interface AuthToken

Propriétés : expiresInSeconds, token

Interface AuthTokenContext

Propriétés : deliveryVehicleId, taskId, trackingId, tripId, vehicleId

Type du jeton AuthTokenFetcher
Interface AuthTokenFetcherOptions

Propriétés : context, serviceType

Constantes FleetEngineServiceType

Constantes : DELIVERY_VEHICLE_SERVICE, TASK_SERVICE, TRIP_SERVICE, UNKNOWN_SERVICE

Personnalisation de l'interface utilisateur

PolylineSetup typedef
Interface PolylineSetupOptions

Propriétés : polylineOptions, visible

Interface Default PolylineSetupOptions

Propriétés : defaultPolylineOptions, defaultVisible

MarkerSetup typedef
Interface MarkerSetupOptions

Propriétés : markerOptions

Interface DefaultMarkerSetupOptions

Propriétés : defaultMarkerOptions

Interface MarkerCustomizeFunctionParams

Propriétés : defaultOptions, isNew, marker

Interface DeliveryVehicleMarkerCustomizeFunctionParams

Propriétés : vehicle

Interface PlannedStopMarkerCustomizeFunctionParams

Propriétés : stopIndex

Interface TaskMarkerCustomizeFunctionParams

Propriétés : task

Interface ShipmentMarkerCustomizeFunctionParams

Propriétés : taskTrackingInfo

Interface TripMarkerCustomizeFunctionParams

Propriétés : trip

Interface TripWaypointMarkerCustomizeFunctionParams

Propriétés : waypointIndex

Entités Fleet Engine

Interface de tâche

Propriétés : estimatedCompletionTime, latestVehicleLocationUpdate, name, outcome, outcomeLocation, outcomeLocationSource, outcomeTime, plannedLocation, remainingVehicleJourneySegments, status, trackingId, type, vehicleId

Interface TaskTrackingInfo

Propriétés : estimatedArrivalTime, estimatedTaskCompletionTime, latestVehicleLocationUpdate, name, plannedLocation, remainingDrivingDistanceMeters, remainingStopCount, routePolylinePoints, state, taskOutcome, taskOutcomeTime, trackingId

Interface de trajet

Propriétés : actualDropOffLocation, actualPickupLocation, dropOffTime, latestVehicleLocationUpdate, name, passengerCount, pickupTime, plannedDropOffLocation, plannedPickupLocation, remainingWaypoints, status, type, vehicleId

Interface DeliveryVehicle

Propriétés : attributes, currentRouteSegmentEndPoint, latestVehicleLocationUpdate, name, navigationStatus, remainingDistanceMeters, remainingDurationMillis, remainingVehicleJourneySegments

Interface DeliveryVehicleStop

Propriétés : tasks

Constantes DeliveryVehicleStopState

Constantes : ARRIVED, ENROUTE, NEW, UNSPECIFIED

Interface VehicleJourneySegment

Propriétés : drivingDistanceMeters, drivingDurationMillis, path, stop

Interface VehicleLocationUpdate

Propriétés : heading, location, speedKilometersPerHour, time

Interface VehicleWaypoint

Propriétés : distanceMeters, durationMillis, location, path

Progression du trajet et de la commande

Classe FleetEngineTripLocationProvider

Propriétés : tripId

Méthodes : refresh

Événements : error, update

Interface FleetEngineTripLocationProviderOptions

Propriétés : authTokenFetcher, destinationMarkerCustomization, originMarkerCustomization, pollingIntervalMillis, projectId, tripId, vehicleMarkerCustomization, waypointMarkerCustomization

Interface FleetEngineTripLocationProviderUpdateEvent

Propriétés : trip

Suivi du parc

Classe FleetEngineDeliveryVehicleLocationProvider

Propriétés : deliveryVehicleId, shouldShowOutcomeLocations, shouldShowTasks, staleLocationThresholdMillis, taskFilterOptions

Événements : error, update

Interface FleetEngineDeliveryVehicleLocationProviderOptions

Propriétés : authTokenFetcher, deliveryVehicleId, deliveryVehicleMarkerCustomization, plannedStopMarkerCustomization, pollingIntervalMillis, projectId, shouldShowOutcomeLocations, shouldShowTasks, staleLocationThresholdMillis, taskFilterOptions, taskMarkerCustomization, taskOutcomeMarkerCustomization

Interface FleetEngineTaskFilterOptions

Propriétés : completionTimeFrom, completionTimeTo, state

Interface FleetEngineDeliveryVehicleLocationProviderUpdateEvent

Propriétés : completedVehicleJourneySegments, deliveryVehicle, tasks

Classe FleetEngineDeliveryFleetLocationProvider

Propriétés : deliveryVehicleFilter, locationRestriction, staleLocationThresholdMillis

Événements : update

Interface FleetEngineDeliveryFleetLocationProviderOptions

Propriétés : authTokenFetcher, deliveryVehicleFilter, deliveryVehicleMarkerCustomization, locationRestriction, projectId, staleLocationThresholdMillis

Interface FleetEngineDeliveryFleetLocationProviderUpdateEvent

Propriétés : deliveryVehicles

Suivi de livraison

Classe FleetEngineShipmentLocationProvider

Propriétés : trackingId

Méthodes : refresh

Événements : error, update

Interface FleetEngineShipmentLocationProviderOptions

Propriétés : authTokenFetcher, deliveryVehicleMarkerCustomization, destinationMarkerCustomization, pollingIntervalMillis, projectId, trackingId

Interface FleetEngineShipmentLocationProviderUpdateEvent

Propriétés : taskTrackingInfo

Contexte local (bêta)

Vue Plan

BêtaClasse LocalContextMapView

Propriétés : directionsOptions, element, isTransitioningMapBounds, locationBias, locationRestriction, maxPlaceCount, placeTypePreferences

Méthodes : addListener, hidePlaceDetailsView, search

Événements : error, placedetailsviewhidestart, placedetailsviewshowstart

BêtaInterface LocalContextMapViewOptions

Propriétés : directionsOptions, element, locationBias, locationRestriction, map, maxPlaceCount, pinOptionsSetup, placeChooserViewSetup, placeDetailsViewSetup, placeTypePreferences

BêtaPlaceTypePreference typedef
BêtaClasse MapDirectionsOptions

Méthodes : addListener

BêtaInterface MapDirectionsOptionsLiteral

Propriétés : origin

BêtaInterface PinOptions

Propriétés : background, glyphColor, scale

Interface PlaceChooserViewSetupOptions

Propriétés : layoutMode, position

BêtaConstantes PlaceChooserLayoutMode

Constantes : HIDDEN, SHEET

BêtaConstantes PlaceChooserPosition

Constantes : BLOCK_END, INLINE_END, INLINE_START

Interface PlaceDetailsViewSetupOptions

Propriétés : hidesOnMapClick, layoutMode, position

BêtaConstantes PlaceDetailsLayoutMode

Constantes : INFO_WINDOW, SHEET

BêtaConstantes PlaceDetailsPosition

Constantes : INLINE_END, INLINE_START