]> git.street.me.uk Git - andy/viking.git/commit - src/viktrwlayer.c
Generalize route finder
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Thu, 16 May 2013 21:36:09 +0000 (23:36 +0200)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Thu, 16 May 2013 21:36:09 +0000 (23:36 +0200)
commit9f30939ade46329639cb8586a6cc1e29a9a495b1
tree1a357215c42700f73d3f7d9d001f028ed757e181
parent77a623820898ac3b5b671ac8229fda4174d5d89e
Generalize route finder

This patch generalize the route finder feature. The goal is to allow
the use of different services to compute a route from two clics.

To achieve this I introduced:
- vik_routing_engine as base class for engines
- vik_routing module for registering engines and providing "default"
  features
And I rewrote the Google related feature.

The new design seems quite overkill, but many more feature will be add in
the future. One of them is to rewrite the Acquire -> Google Direction.
An other is to add a "filter" on a route/track in order to allow a finer
route computation, based on more than 2 points.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
help/C/viking.xml
src/Makefile.am
src/google.c
src/googlerouting.c [new file with mode: 0644]
src/googlerouting.h [new file with mode: 0644]
src/main.c
src/vikrouting.c [new file with mode: 0644]
src/vikrouting.h [new file with mode: 0644]
src/vikroutingengine.c [new file with mode: 0644]
src/vikroutingengine.h [new file with mode: 0644]
src/viktrwlayer.c