Skip to content

add osm source date to route response #2806

Closed

Description

@karussell

Currently it is tricky to know the age of the used OSM data from just the UI. We have it in the /info endpoint but if a cluster of GraphHopper servers is used it is not clear for the client how to pick the dates as the cluster depends on the profile and algorithm. See here: graphhopper/graphhopper-maps#284

One simple solution would be to directly add this to the response:

{
  "info": {
     copyrights: ["GraphHopper", "OpenStreetMap contributors"],
     sources: ["GraphHopper release date or version", "date of OSM data"],
     // or
     data_source_date: "date of OSM data",
     took: 123
  },
  // continue /route response
}

Activity

  1. otbutz commented on Apr 25, 2023

    @otbutz
    Contributor

    The only other solution would be to add a reference to the executing backend server and allow direct access to it. As this is obviously a bad idea, adding metadata to the response is the best solution and feels natural IMHO.

  2. changed the title [-]add osm source date to route response?[/-] [+]add osm source date to route response[/+] on Sep 7, 2023
  3. added this to the 8.0 milestone on Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions