getSpeedLimits

fun getSpeedLimits(    countryCode: String,     tags: Map<String, String>,     relationsTags: List<Map<String, String>> = emptyList(),     replacerFn: (name: String, evaluate: () -> Boolean) -> Boolean = { _, ev -> ev() }): LegalDefaultSpeeds.Result?

Given a country/subdivision and a set of tags on the road (segment), will return a set of additional maxspeed tags the road can be assumed to have based on other properties of the road or (optionally) of which relations it is a member of. Returns null if nothing was found.

Parameters

countryCode

ISO 3166-1 alpha-2 code optionally concatenated with a ISO 3166-2 code, e.g. "DE", "US" or "BE-VLG"

tags

OpenStreetMap tags of the road (segment) in question

relationsTags

the OpenStreetMap tags of all relations the road (segment) in question is a member of. Optional, but may lead to more precise results, especially in the United States.

replacerFn

Optional. You can replace the result of any number of placeholders in a tag filter here (e.g. for name = "urban"), for example if you have another data source to acquire whether a road is in a built-up area or not. For those you do not want to replace, simply pass on the result of evaluate as result