Directions

DirectionsService class

google.maps.DirectionsService class

שירות לחישוב מסלולים בין שני מקומות או יותר.

אפשר להתקשר אל const {DirectionsService} = await google.maps.importLibrary("routes") כדי לקבל גישה.
מידע נוסף זמין במאמר בנושא ספריות ב-Maps JavaScript API.

DirectionsService
DirectionsService()
פרמטרים:  אין
יוצר מופע חדש של DirectionsService ששולח שאילתות של הוראות הגעה לשרתים של Google.
route
route(request[, callback])
פרמטרים: 
  • request