Skip to content

Commit bb1881a

Browse files
committed
Merge pull request #1 from graphhopper/master
Update My Repo
2 parents 3e49f88 + 9dcda68 commit bb1881a

File tree

494 files changed

+34121
-13533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+34121
-13533
lines changed

.gitignore

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
target/
22
*~
3-
*largeEWD.txt.gz
43
TODO.txt
54
*-gh/
65
*.osm
7-
docs/
86
nbactions-*.xml
97
config.properties
108
build.xml
119
queries.sh
1210
maven/
1311
measurement*.properties
14-
live_graphhopper.sh
1512
gen/
1613
bin/
1714
*.map
18-
scripts/googlecode_upload.py
19-
deploy.sh
2015
android/libs/graphhopper-*-android.jar
2116
*/nbactions.xml
2217
.idea/
@@ -25,4 +20,16 @@ debug.sh
2520
*.pbf
2621
*.dem
2722
*.log
28-
core/TODO*.txt
23+
core/TODO*.txt
24+
srtmprovider/
25+
core/docs/
26+
.*#
27+
cgiarprovider/
28+
/nbactions.xml
29+
tools/nb-configuration.xml
30+
android/build/
31+
android/app/build/
32+
android/.gradle
33+
.settings/
34+
.classpath
35+
.project

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: java
22
jdk:
33
- openjdk7
4-
- openjdk6
54
- oraclejdk7
6-
# fails with GZIPInputStream creation (readHeader) - oraclejdk8
5+
- oraclejdk8
76
# do not install anything instead return true via unix command true
87
install: true
98
script: ./core/files/travis-build.sh
109
notifications:
1110
email:
12-
11+
12+
13+
# enable container-based stack
14+
sudo: false

CONTRIBUTING.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
Submit a new issue only if you are sure it is a missing feature or a bug. Otherwise discuss the topic on the
2-
[mailing list](http://graphhopper.com/#developers) first.
2+
[mailing list](http://graphhopper.com/#developers) first. For new translations or fixes to existing translations
3+
please refer to [this documentation](https://github.com/graphhopper/graphhopper/blob/master/docs/core/translations.md).
34

4-
We love pull requests. Here's a quick guide:
5+
Issues for newcomers are tagged with
6+
['good first issue'](https://github.com/graphhopper/graphhopper/labels/good%20first%20issue)
7+
and documentation issues are taged with
8+
['documentation'](https://github.com/graphhopper/graphhopper/labels/documentation).
59

6-
1. [Fork the repo](https://help.github.com/articles/fork-a-repo), optionally create a feature branch
10+
## We love pull requests. Here's a quick guide:
711

8-
2. Run the tests. We only take pull requests with passing tests: `mvn test`
12+
1. [Fork the repo](https://help.github.com/articles/fork-a-repo) and create a branch for your new feature or bug fix.
913

10-
3. Add a test for your change. Only refactoring and documentation changes
11-
require no new tests. If you are adding functionality or fixing a bug, we need
12-
a test!
14+
2. Run the tests. We only take pull requests with passing tests: `mvn clean test verify`
1315

14-
4. Make the test pass.
16+
3. Add at least one test for your change. Only refactoring and documentation changes
17+
require no new tests. Also make sure you submit a change specific to exactly one issue. If you have ideas for multiple
18+
changes please create separate pull requests.
1519

16-
5. Push to your fork and [submit a pull request](https://help.github.com/articles/using-pull-requests)
20+
4. Make the test(s) pass.
1721

22+
5. Push to your fork and [submit a pull request](https://help.github.com/articles/using-pull-requests). A button should
23+
appear on your fork its github page afterwards.
1824

19-
Syntax:
25+
## License Agreement
2026

21-
* Tell this your IDE or just use NetBeans which picks the format from pom.xml. E.g. no tabs - use 4 spaces instead!!
27+
For contributions like pull requests, bug fixes and translations please read and electronically sign
28+
the <a href="http://www.clahub.com/agreements/graphhopper/graphhopper">GraphHopper License Agreement</a>,
29+
which gives not away your rights but it will make sure for others that you agree to the Apache License, Version 2.
30+
31+
## Syntax:
32+
33+
* Tell this your IDE or just use NetBeans which picks the format from pom.xml. E.g. no tabs - use 4 spaces instead!
2234
* Follow the conventions you see used in the source already.
2335

2436
And in case we didn't emphasize it enough: we love tests!

CONTRIBUTORS.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
[Members](https://github.com/graphhopper?tab=members) and [Contributors](https://github.com/graphhopper/graphhopper/contributors)
22

3+
* AnahitaS
34
* agouge, discussion and API refactoring
5+
* b3nn0, Android improvements
6+
* cgarreau, increase of routing success rate via subnetwork cleanup
47
* daisy1754, fixed usage of graphhopper.sh script
8+
* dardin88, instructions improved
9+
* dewos
10+
* lmar, improved instructions information
511
* fredao, translations
12+
* jansoe, one of the core developers
613
* jansonhanson, general host config
7-
* karussell, lead developer
8-
* khuebner, pushes turn instructions forward
14+
* JohannesPelzer, improved GPX information and various other things
15+
* karussell, one of the core developers
16+
* khuebner, pushed turn instructions forward
917
* lmar, improved instructions
1018
* NopMap, massive improvements regarding OSM, parsing and encoding, route relations
1119
* ocampana, initial implementation for instructions
12-
* ratrun, route relations and bike handling
13-
* rodo, more descriptions
20+
* ratrun, route relations, GPX information, bike handling etc
21+
* rodneyodonnell, improved dead end removal
22+
* rodo, more descriptions
23+
24+
# Translations
25+
26+
A lot people helped to create translations - thanks!
27+
See [this spreadsheet](https://docs.google.com/spreadsheet/ccc?key=0AmukcXek0JP6dGM4R1VTV2d3TkRSUFVQakhVeVBQRHc#gid=0)

NOTICE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GraphHopper licensed under the Apache license, Version 2.0
22

3-
Copyright 2012-2013 Peter Karich
3+
Copyright 2012-2015 Peter Karich
44

55
The core product includes the following software
66
* slf4j.org - SLF4J distributed under the MIT license.
@@ -10,6 +10,7 @@ The core product includes the following software
1010
* protobuf - New BSD license
1111
* OSM-binary - LGPL license
1212
* Osmosis - public domain, see osmosis-copying.txt under core/files
13+
* XMLGraphics-Commons for CGIAR elevation files - (Apache License)
1314

1415
tools
1516
* apache-compress
@@ -18,5 +19,7 @@ web
1819
* org.json, MIT style license
1920
* com.google.inject, Apache License 2.0
2021
* images from mapbox https://www.mapbox.com/maki/, BSD License, see core/files
22+
23+
android
2124
* android, Apache License 2.0
2225
* org.mapsforge, LGPL

README.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,44 @@
1-
# GraphHopper [![Build Status](https://secure.travis-ci.org/graphhopper/graphhopper.png?branch=master)](http://travis-ci.org/graphhopper/graphhopper)
1+
# GraphHopper Route Planner
2+
3+
[![Build Status](https://secure.travis-ci.org/graphhopper/graphhopper.png?branch=master)](http://travis-ci.org/graphhopper/graphhopper)
24

35
GraphHopper is a fast and memory efficient Java road routing engine released under Apache License 2.0.
4-
It is tuned towards road networks with OpenStreetMap data but can be useful for public transport problems as well.
6+
Per default it uses OpenStreetMap data but can import other data sources.
7+
8+
GraphHopper for the Web
9+
--------------
10+
11+
See GraphHopper in action on [GraphHopper Maps](https://graphhopper.com/maps)
512

13+
[![GraphHopper Maps](https://karussell.files.wordpress.com/2014/12/graphhopper-maps-0-4-preview.png)](https://graphhopper.com/maps)
614

7-
Get Started & Contribute
15+
GraphHopper Maps uses the [Directions API for Business](https://graphhopper.com/#directions-api), which provides
16+
routing and matrix routing through GraphHopper and also a fast address search via [Photon](https://github.com/komoot/photon).
17+
Additionally the map tiles from various Providers like [Lyrk](https://geodienste.lyrk.de/pakete)
18+
are used and all is available for free and through HTTPS for a secure route planning experience!
19+
20+
21+
GraphHopper for Mobile
822
---------------
923

10-
Read through our [wiki](https://github.com/graphhopper/graphhopper/wiki/),
11-
[how to contribute](https://github.com/graphhopper/graphhopper/blob/master/CONTRIBUTING.md) and
24+
There are subprojects to make GraphHopper working offline
25+
on [Android](https://github.com/graphhopper/graphhopper/tree/master/android)
26+
and [iOS](http://github.com/graphhopper/graphhopper-ios)
27+
28+
29+
Get Started
30+
---------------
31+
32+
Read through our Documentation ([0.4](https://github.com/graphhopper/graphhopper/blob/0.4/docs/index.md), [unstable](https://github.com/graphhopper/graphhopper/blob/master/docs/index.md)),
1233
ask questions on [Stackoverflow](http://stackoverflow.com/questions/tagged/graphhopper)
13-
or sign up to the [mailing list](http://graphhopper.com/#developers).
34+
and sign up to the [mailing list](http://graphhopper.com/#developers).
1435

15-
**Please only email me directly if you need consultancy** or can't explain your problem in the public.
1636

17-
There are subprojects to make GraphHopper working on [Android](https://github.com/graphhopper/graphhopper/wiki/Android) or
18-
as a [web application](https://github.com/graphhopper/graphhopper/tree/master/web). Have a look into our [live application](http://graphhopper.com/maps)
37+
Contribute
38+
---------------
39+
40+
Read through [how to contribute](https://github.com/graphhopper/graphhopper/blob/master/CONTRIBUTING.md)
41+
like finding and fixing bugs and improving our documentation or translations!
1942

2043

2144
Features
@@ -25,6 +48,6 @@ Features
2548
* Open Source
2649
* Memory efficient and fast
2750
* Highly customizable
28-
* Works on the desktop, as a web service and offline on Android
29-
* Well tested
30-
* [... more](http://graphhopper.com/#overview)
51+
* Works on the desktop, as a web service and offline on Android or iOS
52+
* Large test suite
53+
* [... more](http://graphhopper.com/#overview)

android/.classpath

Lines changed: 0 additions & 13 deletions
This file was deleted.

android/.project

Lines changed: 0 additions & 39 deletions
This file was deleted.

android/.settings/org.eclipse.jdt.core.prefs

Lines changed: 0 additions & 4 deletions
This file was deleted.

android/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This is a simple Eclipse project which uses graphhoppers routing and mapsforge to display the map.
2-
3-
* Download the apk [here](http://graphhopper.com/#download)
4-
* More information about setup, maps creation etc is [in the wiki](https://github.com/graphhopper/graphhopper/wiki/Android)
1+
This maven module can be used for various IDEs like NetBeans or Eclipse to
2+
make GraphHopper offline routing working on Android. For offline
3+
maps the mapsforge project is used. For more information see the
4+
[android docs](https://github.com/graphhopper/graphhopper/blob/master/docs/android/index.md).
55

66
![simple routing](http://karussell.files.wordpress.com/2012/09/graphhopper-android.png)

android/app/build.gradle

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 19
5+
buildToolsVersion "21.1.2"
6+
7+
defaultConfig {
8+
applicationId "com.graphhopper.android"
9+
minSdkVersion 8
10+
targetSdkVersion 19
11+
}
12+
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
17+
}
18+
}
19+
20+
lintOptions {
21+
/* CGIARProvider refers to java.awt
22+
* Helper7 refers to java.lang.management
23+
* HeightTile refers to javax.imageio and java.awt
24+
* OSMElement refers to javax.xml.stream
25+
*/
26+
disable 'InvalidPackage'
27+
}
28+
}
29+
30+
/** only necessary if you need to use latest SNAPSHOT
31+
configurations.all {
32+
// check for updates every build
33+
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
34+
}
35+
**/
36+
37+
dependencies {
38+
compile(group: 'com.graphhopper', name: 'graphhopper', version: '0.4-SNAPSHOT') {
39+
exclude group: 'com.google.protobuf', module: 'protobuf-java'
40+
exclude group: 'org.openstreetmap.osmosis', module: 'osmosis-osm-binary'
41+
exclude group: 'org.apache.xmlgraphics', module: 'xmlgraphics-commons'
42+
}
43+
44+
compile group: 'org.mapsforge', name: 'mapsforge-core', version: '0.5.0'
45+
compile group: 'org.mapsforge', name: 'mapsforge-map', version: '0.5.0'
46+
compile group: 'org.mapsforge', name: 'mapsforge-map-android', version: '0.5.0'
47+
compile group: 'org.mapsforge', name: 'mapsforge-map-reader', version: '0.5.0'
48+
49+
compile group: 'org.slf4j', name: 'slf4j-android', version: '1.7.10'
50+
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.10'
51+
}

0 commit comments

Comments
 (0)