Repository navigation
Conversation
Member
Author
|
Currently the default is to pick the first vehicle if non is specified in the file, maybe we should apply the change to all vehicles instead in these cases. |
Member
Author
|
Will merge soon |
Member
Author
|
Attached is a real world example (berlin area) to block access (car) and lower speed (foot) |
Member
Author
|
Is now merged to master: 9a9f34a |
Member
Author
|
Using serialization classes e.g. 'ConfigurationPojo' in the core will avoid using this 'heavier' dependency into the core. We can deserialize the json in the web module into such a 'serialization object' and forward this. |
This was referenced Sep 12, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes it possible to feed external speed or access changes via GeoJSON. For now it is not yet integrated in e.g. GraphHopper core or web. But you can easily add it via:
pom.xml:
E.g. see FeedOverlayDataTest or an example json file
Keep in mind that the order of any coordinate array is lon,lat and e.g. the bbox is min_lon,min_lat,max_lon,max_lat like specified in the Geojson spec. Also currently only three cases for a Feature are implemented:
type=Point,type=MultiPointandtypeand noproperties.coordinatesentry but with a bounding box entrybboxIt furthermore introduces a Json reader wrapper as discussed in #773 backed by Gson.
The overlay change functionality will stay in separate module
reader-overlay-data. It goes even further and as we need map matching functionality in this reader module, we potentially have to move the currently separate map matching component into this repository here. Keeping it necessary and still depend on it would not work well.Keep in mind: the feeding mechanism is not thread safe, so you should not use this for real time updates without some locking. And it would work only for non-CH, but this method here is before the preparation and works with CH as applied only once.