Errors
Stay organized with collections
Save and categorize content based on your preferences.
google.maps.MapsNetworkError
class
Base class for managing network errors in Maps.
This class extends
Error
.
Access by calling const {MapsNetworkError} = await google.maps.importLibrary("core")
.
See Libraries in the Maps JavaScript API.
Properties |
code |
Identifies the type of error produced by the API. |
endpoint |
Represents the network service that responded with the error. |
google.maps.MapsRequestError
class
Represents a request error from a web service (i.e. the equivalent of a 4xx code in HTTP).
This class extends
MapsNetworkError
.
Access by calling const {MapsRequestError} = await google.maps.importLibrary("core")
.
See Libraries in the Maps JavaScript API.
google.maps.MapsServerError
class
Represents a server-side error from a web service (i.e. the equivalent of a 5xx code in HTTP).
This class extends
MapsNetworkError
.
Access by calling const {MapsServerError} = await google.maps.importLibrary("core")
.
See Libraries in the Maps JavaScript API.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["[MapsNetworkError](#MapsNetworkError)\nclass\n\n\ngoogle.maps`.`MapsNetworkError\nclass\n\nBase class for managing network errors in Maps.\n\nThis class extends\n`Error`.\n\nAccess by calling `const {MapsNetworkError} = await google.maps.importLibrary(\"core\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| Properties ||\n|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [code](#MapsNetworkError.code) | **Type:** [DirectionsStatus](/maps/documentation/javascript/reference/3.60/directions#DirectionsStatus)`|`[DistanceMatrixStatus](/maps/documentation/javascript/reference/3.60/distance-matrix#DistanceMatrixStatus)`|`[ElevationStatus](/maps/documentation/javascript/reference/3.60/elevation#ElevationStatus)`|`[GeocoderStatus](/maps/documentation/javascript/reference/3.60/geocoder#GeocoderStatus)`|`[MaxZoomStatus](/maps/documentation/javascript/reference/3.60/max-zoom#MaxZoomStatus)`|`[PlacesServiceStatus](/maps/documentation/javascript/reference/3.60/places-service#PlacesServiceStatus)`|`[StreetViewStatus](/maps/documentation/javascript/reference/3.60/street-view-service#StreetViewStatus) Identifies the type of error produced by the API. |\n| [endpoint](#MapsNetworkError.endpoint) | **Type:** [MapsNetworkErrorEndpoint](/maps/documentation/javascript/reference/3.60/errors#MapsNetworkErrorEndpoint) Represents the network service that responded with the error. |\n\n[MapsRequestError](#MapsRequestError)\nclass\n\n\ngoogle.maps`.`MapsRequestError\nclass\n\nRepresents a request error from a web service (i.e. the equivalent of a 4xx code in HTTP).\n\nThis class extends\n[MapsNetworkError](/maps/documentation/javascript/reference/3.60/errors#MapsNetworkError).\n\nAccess by calling `const {MapsRequestError} = await google.maps.importLibrary(\"core\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| Properties ||\n|---|---|\n\n[MapsServerError](#MapsServerError)\nclass\n\n\ngoogle.maps`.`MapsServerError\nclass\n\nRepresents a server-side error from a web service (i.e. the equivalent of a 5xx code in HTTP).\n\nThis class extends\n[MapsNetworkError](/maps/documentation/javascript/reference/3.60/errors#MapsNetworkError).\n\nAccess by calling `const {MapsServerError} = await google.maps.importLibrary(\"core\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| Properties ||\n|---|---|\n\n[MapsNetworkErrorEndpoint](#MapsNetworkErrorEndpoint)\nconstants\n\n\ngoogle.maps`.`MapsNetworkErrorEndpoint\nconstants\n\nIdentifiers for API endpoints used by [MapsNetworkError](/maps/documentation/javascript/reference/3.60/errors#MapsNetworkError) instances.\n\nAccess by calling `const {MapsNetworkErrorEndpoint} = await google.maps.importLibrary(\"core\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| Constants ||\n|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [DIRECTIONS_ROUTE](#MapsNetworkErrorEndpoint.DIRECTIONS_ROUTE) | Identifies the Routes API within the Directions API. |\n| [DISTANCE_MATRIX](#MapsNetworkErrorEndpoint.DISTANCE_MATRIX) | Identifies the DistanceMatrix API. |\n| [ELEVATION_ALONG_PATH](#MapsNetworkErrorEndpoint.ELEVATION_ALONG_PATH) | Identifies the getElevationsAlongPath API within the Elevation API. |\n| [ELEVATION_LOCATIONS](#MapsNetworkErrorEndpoint.ELEVATION_LOCATIONS) | Identifies the getElevationForLocations API within the Elevation API. |\n| [FLEET_ENGINE_GET_DELIVERY_VEHICLE](#MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_DELIVERY_VEHICLE) | Identifies the Get DeliveryVehicle API within Fleet Engine. |\n| [FLEET_ENGINE_GET_TRIP](#MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_TRIP) | Identifies the Get Trip API within Fleet Engine. |\n| [FLEET_ENGINE_GET_VEHICLE](#MapsNetworkErrorEndpoint.FLEET_ENGINE_GET_VEHICLE) | Identifies the Get Vehicle API within Fleet Engine. |\n| [FLEET_ENGINE_LIST_DELIVERY_VEHICLES](#MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_DELIVERY_VEHICLES) | Identifies the List DeliveryVehicles API within Fleet Engine. |\n| [FLEET_ENGINE_LIST_TASKS](#MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_TASKS) | Identifies the List Tasks API within Fleet Engine. |\n| [FLEET_ENGINE_LIST_VEHICLES](#MapsNetworkErrorEndpoint.FLEET_ENGINE_LIST_VEHICLES) | Identifies the List Vehicles API within Fleet Engine. |\n| [FLEET_ENGINE_SEARCH_TASKS](#MapsNetworkErrorEndpoint.FLEET_ENGINE_SEARCH_TASKS) | Identifies the Search Tasks API within Fleet Engine. |\n| [GEOCODER_GEOCODE](#MapsNetworkErrorEndpoint.GEOCODER_GEOCODE) | Identifies the geocode API within the Geocoder. |\n| [MAPS_MAX_ZOOM](#MapsNetworkErrorEndpoint.MAPS_MAX_ZOOM) | Identifies the MaximumZoomImageryService API within the Maps API. |\n| [PLACES_AUTOCOMPLETE](#MapsNetworkErrorEndpoint.PLACES_AUTOCOMPLETE) | Identifies the Autocomplete API within the Places API. |\n| [PLACES_DETAILS](#MapsNetworkErrorEndpoint.PLACES_DETAILS) | Identifies the Details API within the Places API. |\n| [PLACES_FIND_PLACE_FROM_PHONE_NUMBER](#MapsNetworkErrorEndpoint.PLACES_FIND_PLACE_FROM_PHONE_NUMBER) | Identifies the findPlaceFromPhoneNumber API within the Places API. |\n| [PLACES_FIND_PLACE_FROM_QUERY](#MapsNetworkErrorEndpoint.PLACES_FIND_PLACE_FROM_QUERY) | Identifies the findPlaceFromQuery API within the Places API. |\n| [PLACES_GATEWAY](#MapsNetworkErrorEndpoint.PLACES_GATEWAY) | Identifies the Gateway API within the Places API. |\n| [PLACES_GET_PLACE](#MapsNetworkErrorEndpoint.PLACES_GET_PLACE) | Identifies the Get Place API within the Places API. |\n| [PLACES_LOCAL_CONTEXT_SEARCH](#MapsNetworkErrorEndpoint.PLACES_LOCAL_CONTEXT_SEARCH) | Identifies the LocalContextSearch API within the Places API. |\n| [PLACES_NEARBY_SEARCH](#MapsNetworkErrorEndpoint.PLACES_NEARBY_SEARCH) | Identifies the NearbySearch API within the Places API. |\n| [PLACES_SEARCH_TEXT](#MapsNetworkErrorEndpoint.PLACES_SEARCH_TEXT) | Identifies the Search Text API within the Places API. |\n| [STREETVIEW_GET_PANORAMA](#MapsNetworkErrorEndpoint.STREETVIEW_GET_PANORAMA) | Identifies the getPanorama method within the Streetview service. |"]]