You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
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.
Activity
otbutz commentedon Apr 25, 2023
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.
[-]add osm source date to route response?[/-][+]add osm source date to route response[/+]