Skip to content

Move map matching modules into this repository? #792

Closed

Description

@karussell

In #781 I stumbled over the necessity to add map matching as dependency. But we would either have to move the reader-overlay-data-module into the map matching repository or move the map matching into this repository to avoid cyclic dependencies. Or some kind of plugin architecture has to be developed for the web module. Not sure.

No maven dependencies will be changed due to this, just handling the sources, deployment, setup and compilation together.

Also in case we move the mapmatching to this here, we would need to merge both start scripts somehow and source code history would be lost, as well as all the stars.

It would simplify deployment and release management as we do not need do duplicate everything for both repositories.

Activity

  1. changed the title [-]Should we move map matching modules into this repository?[/-] [+]Move map matching modules into this repository?[/+] on Sep 13, 2016
  2. devemux86 commented on Sep 13, 2016

    @devemux86
    Contributor

    What about git submodules?

  3. karussell commented on Sep 13, 2016

    @karussell
    MemberAuthor

    They could help, but we should really not use them, as they seem simple at first but makes everything unnecessarily complex.

  4. devemux86 commented on Sep 13, 2016

    @devemux86
    Contributor

    Modules depending on GraphHopper core and being closely related to its routing could be hosted under same project, retaining their integrity. Additional benefit is that they'll advance in parallel with it.
    👍

  5. kodonnell commented on Oct 18, 2016

    @kodonnell
    Contributor

    I'm in favour of merging, as they solve similar problems. For example, GH currently lets you provide a set of waypoints to route, and then routes between each of them to get a final route. In most cases, I suspect people may have actually been intending to use map-matching. (I know that this was the case for us at work.)

    I also suspect that having the two in the same repository (and API?) will result in more unified/tidy code and a better experience for users.

  6. karussell commented on Oct 19, 2016

    @karussell
    MemberAuthor

    I also suspect that having the two in the same repository (and API?) will result in more unified/tidy code and a better experience for users

    I do not intend to merge the core modules, maybe merge the web modules, not sure. So I would as a first step just move the modules into the same repository so the code and dependencies will be unchanged. The start script will unified though.

  7. stefanholder commented on Nov 25, 2016

    @stefanholder
    Contributor

    source code history would be lost

    There are several approaches to retain the source code history of the map-matching repository: http://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories

    The soution suggested in answer 3 using git merge --allow-unrelated-histories seems most promising to mee.

  8. karussell commented on Dec 15, 2016

    @karussell
    MemberAuthor

    Sounds good @stefanholder.

    And as we could then simplify the 'tools' module to include the measurement and a debug UI for both projects, this issue would make a lot of sense. Furthermore we could take the chance and strip some of the osm files in the map matching repo, or at least move the core/files into the root folder and copy the files from MM/map-data there.

  9. kodonnell commented on Dec 15, 2016

    @kodonnell
    Contributor

    @karussell are you the best person for doing this? I could try, but this sort of git stuff scares me somewhat! Maybe we could start by just bringing map-matching in, and start merging the functionality as separate PRs?

  10. kodonnell commented on Dec 16, 2016

    @kodonnell
    Contributor

    a debug UI for both projects

    An indirect benefit from this - if we have one UI for both, then we can make it clear to users that they have both options (GH waypoint routing or map-matching), and they can choose which is most appropriate by comparing the results from the GUI. I suspect most people with multiple waypoints do not appreciate why they need map-matching, and think naive waypoint-to-waypoint routing should work. In fact, I can't see many cases where you'd want to use waypoint routing instead of map-matching ... I'd suggest map-matching should replace it, both in functionality and the API. So we treat map-matching as just a different routing algorithm (I suspect we can refactor so that we can just use e.g. mapMatchingAlgo.calcPath etc).

    One could easily see it extending to the final web apps too. E.g. if you input more than two waypoints, it asks whether you want to use map-matching (or defaults to it).

    The reason I mention it is that I know of some people who just delivered bogus results to a client due to effectively using GH to route a GPX track point-to-point without using map-matching. (That said, I actually warned them of this, so maybe they wouldn't have learned anyway!)

  11. added this to the 0.11 milestone on Feb 26, 2018
  12. added a commit that references this issue on Apr 11, 2018
    3abdb3c
  13. karussell commented on Jul 13, 2018

    @karussell
    MemberAuthor

    For now we keep the repositories separate. The arguments are better visibility but also the issues can stay.

  14. removed this from the 0.11 milestone on Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions