Skip to content

Commit

Permalink
avoid making this the default config as test use it too
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Nov 15, 2023
1 parent 23d997e commit 60eb9c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ There is [an experimental `navi` branch](https://github.com/graphhopper/graphhop
* Fork the repository and create a pull request. Contributions are welcome. Feel free to discuss your changes in our
[forum](https://discuss.graphhopper.com/) or the GitHub [issues](https://github.com/graphhopper/graphhopper-maps/issues).
* You can build the production bundle using `npm run build`.
* If you use the Directions API edit the config to show profile icons properly (see 'Advanced configuration' section below).

## Help with translations:

Expand Down
14 changes: 7 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ const config = {
// Use 'profiles' to define which profiles are visible and how. Useful if the /info endpoint contains too many or too "ugly" profile
// names or in the wrong order. The key of each profile will be used as name and the given fields will overwrite the fields of the
// default routing request. The following example is tuned towards the GraphHopper Directions API. If you have an own server you might want to adapt it.

profiles: {
car:{}, small_truck:{}, truck:{}, scooter:{},
foot:{ details: ['foot_network'] }, hike:{ details: ['foot_network'] },
bike:{ details: ['get_off_bike', 'bike_network'] }, mtb:{ details: ['get_off_bike', 'bike_network'] }, racingbike:{ details: ['get_off_bike', 'bike_network'] },
}

//
// profiles: {
// car:{}, small_truck:{}, truck:{}, scooter:{},
// foot:{ details: ['foot_network'] }, hike:{ details: ['foot_network'] },
// bike:{ details: ['get_off_bike', 'bike_network'] }, mtb:{ details: ['get_off_bike', 'bike_network'] }, racingbike:{ details: ['get_off_bike', 'bike_network'] },
// }
//
// E.g. the 'bike' entry will add a "bike" profile for which we send a request with the specified 'details' parameter. You can even change the profile itself when you specify
// bike: { profile: 'raw_bike', ... }
}
Expand Down

0 comments on commit 60eb9c5

Please sign in to comment.