Skip to content

How to limit API calls per second #1035

@tmp-hallenser

Description

@tmp-hallenser

Hi,

I want to use the Nominatim API to do some geocoding. According to the Usage Policy, one is allowed to do max. 1 request per second.

Since several calls will be identical, I'm using the Cache provider to reduce the number of calls.

Is there a smart way to achieve the 1 request per second restriction in case of caching?

I could of course just pause for 1s after each query. This is a bit suboptimal since it unnecessarily slows down cached queries.

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions