Skip to content

@smartmaps/routingDocs


@smartmaps/routing / RoutingIsochrone

Class: RoutingIsochrone

Extends

Constructors

new RoutingIsochrone()

new RoutingIsochrone(apiKey, options): RoutingIsochrone

Parameters

apiKey: string

options: Partial\<RoutingIsochroneOptions> = {}

Returns

RoutingIsochrone

Inherited from

RoutingBase.constructor

Properties

apiKey

protected apiKey: string

Inherited from

RoutingBase.apiKey


options

options: RoutingIsochroneOptions

Inherited from

RoutingBase.options

Methods

calcRoute()

calcRoute(latlngs, options): Promise\<RoutingIsochroneResponseCollection>

Parameters

latlngs: SmartmapsPointExpression[]

options: Partial\<RoutingIsochroneOptions & object> = {}

Returns

Promise\<RoutingIsochroneResponseCollection>

Inherited from

RoutingBase.calcRoute


checkResponse()

protected checkResponse(response): CheckResponse

Parameters

response: unknown

Returns

CheckResponse

Inherited from

RoutingBase.checkResponse


fillRequestFeatures()

fillRequestFeatures(latlngs): RoutingRequestWaypoint[]

Parameters

latlngs: SmartmapsPointExpression[]

Returns

RoutingRequestWaypoint[]

Overrides

RoutingBase.fillRequestFeatures


fillRoutingParams()

fillRoutingParams(options): RoutingIsochroneRequestParams

Parameters

options: Partial\<RoutingIsochroneOptions>

Returns

RoutingIsochroneRequestParams

Overrides

RoutingBase.fillRoutingParams


getRequestInfo()

protected getRequestInfo(request): Promise\<object>

Parameters

request: string

Returns

Promise\<object>

bodyPart

bodyPart: object

requestPart

requestPart: Partial\<RequestInit>

url

url: string

Inherited from

RoutingBase.getRequestInfo