Skip to content

Instantly share code, notes, and snippets.

@tim-rohrer
Created September 18, 2020 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tim-rohrer/b3662c6353ed6f6c4e3d65fedfa92933 to your computer and use it in GitHub Desktop.
Save tim-rohrer/b3662c6353ed6f6c4e3d65fedfa92933 to your computer and use it in GitHub Desktop.
window.google = {
maps: {
DirectionsService: class {
route() {}
},
DirectionsStatus: {
INVALID_REQUEST: 'INVALID_REQUEST' as google.maps.DirectionsStatus.INVALID_REQUEST,
MAX_WAYPOINTS_EXCEEDED: 'MAX_WAYPOINTS_EXCEEDED' as google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED,
NOT_FOUND: 'NOT_FOUND' as google.maps.DirectionsStatus.NOT_FOUND,
OK: 'OK' as google.maps.DirectionsStatus.OK,
OVER_QUERY_LIMIT: 'OVER_QUERY_LIMIT' as google.maps.DirectionsStatus.OVER_QUERY_LIMIT,
REQUEST_DENIED: 'REQUEST_DENIED' as google.maps.DirectionsStatus.REQUEST_DENIED,
UNKNOWN_ERROR: 'UNKNOWN_ERROR' as google.maps.DirectionsStatus.UNKNOWN_ERROR,
ZERO_RESULTS: 'ZERO_RESULTS' as google.maps.DirectionsStatus.ZERO_RESULTS,
},
TravelMode: {
BICYCLING: 'BICYCLING' as google.maps.TravelMode.BICYCLING,
DRIVING: 'DRIVING' as google.maps.TravelMode.DRIVING,
TRANSIT: 'TRANSIT' as google.maps.TravelMode.TRANSIT,
TWO_WHEELER: 'TWO_WHEELER' as google.maps.TravelMode.TWO_WHEELER,
WALKING: 'WALKING' as google.maps.TravelMode.WALKING,
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment