getCost method
- required String attributeName,
Gets cost.
Returns the associated cost for this attribute name.
Parameters:
attributeName
— The name of the attribute name e.g. "Minutes" or "TravelTime".
Return Value: A value of cost.
Implementation
double getCost({
required String attributeName,
}) {
final coreAttributeName = _CString(attributeName);
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityRoute_getCost(
_handle,
coreAttributeName.bytes,
errorHandler,
);
});
}