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