@smartmaps/routing • Docs
@smartmaps/routing / Routing
Class: Routing
Extends
Constructors
new Routing()
new Routing(
apiKey,options):Routing
Parameters
• apiKey: string
• options: Partial\<RoutingOptions> = {}
Returns
Inherited from
Properties
apiKey
protectedapiKey:string
Inherited from
options
options:
RoutingOptions
Inherited from
Methods
calcRoute()
calcRoute(
latlngs,options):Promise\<RoutingResponseCollection>
Parameters
• latlngs: SmartmapsPointExpression[]
• options: Partial\<RoutingOptions & object> = {}
Returns
Promise\<RoutingResponseCollection>
Inherited from
checkResponse()
protectedcheckResponse(response):CheckResponse
Parameters
• response: unknown
Returns
CheckResponse
Inherited from
fillRequestFeatures()
fillRequestFeatures(
latlngs):RoutingRequestWaypoint[]
Parameters
• latlngs: SmartmapsPointExpression[]
Returns
Overrides
RoutingBase.fillRequestFeatures
fillRoutingParams()
fillRoutingParams(
options):RoutingRouteRequestParams
Parameters
• options: Partial\<RoutingOptions>
Returns
Overrides
getRequestInfo()
protectedgetRequestInfo(request):Promise\<object>
Parameters
• request: string
Returns
Promise\<object>
bodyPart
bodyPart:
object
requestPart
requestPart:
Partial\<RequestInit>
url
url:
string