Skip to content

Return station co-ordinates (lat/lon) from /api/projects/{proj_id}/stations? #3

@JamesSample

Description

@JamesSample

At present, it is straightforward to efficiently get a list of stations for a project using the /api/projects/{proj_id}/stations endpoint. This gives station ID, code, name and type, but does not currently provide spatial co-ordinates (which are almost always useful).

I can get the co-ordinates by looping over the api/projects/{proj_id}/stations/{stn_id}/samplePoint endpoint for each station, but this is slow.

Would it be possible to either modify the /api/projects/{proj_id}/stations endpoint to include lat and lon (together with the other attributes above), or else create a new endpoint that does this?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions