Skip to content

Add support for administrative boundary name/code/osm-id for queries #219

Open
@rtroilo

Description

@rtroilo

Overpass allows to query with a country name or osm-id,
area[name="London"]; or area(3600065606)

Our dashboard also allows to choose countries (by name).
And as we already have the administrative boundaries in our database we could provide a new filter-parameter for the ohsome-api which allows the user to specify the name/code/wikidata/iso/id for one or more features.

here some example filters how this could look like:

  • area=Anderson Country:Kansas:USA or area=Q377234 or area=1070344

  • also multiple areas should be allowed
    area=Heidelberg or Mannheim or area=Heidelberg, Mannheim

  • and querieable should also be a mix of name/localname/wikidata,iso3166_2 code, and id
    area=münchen or essex:can or gb-lce or q1044 or 62691

This new parameter would us also allow to generate a query (curl/https) link from a dashboard query.

As we already have access to the adminboundary data, I guess a first version could be done quite quickly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    brainstormingIdea for a potential new feature or adaption that still needs further discussioncomments welcomeIndicates that the creator of this issue/PR is open for early review commentsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions