Skip to content

Possibility of using conditional speed limit? #50

@AravindaDP

Description

@AravindaDP

OpenStreetMap allows defining conditional speed limits. https://wiki.openstreetmap.org/wiki/Key:maxspeed:conditional

Is it possible to add this to Ways returned? https://github.com/pfeiferj/mapd/blob/main/generate_offline.go#L150 And then in https://github.com/pfeiferj/mapd/blob/main/mapd.go#L179 can we alter the MAP_SPEED_LIMIT based on current time and if conditional speed applies. Also NEXT_MAP_SPEED_LIMIT can be adjusted based on current time as well (For the brevity omitting the complexity of considering what will be the time when we reach next way) https://github.com/pfeiferj/mapd/blob/main/mapd.go#L249

This would make it necessary to mapsd to read current local time which I assume is a fair dependency.

If contributions are accepted, I can give it a try.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions