Skip to content

Commit

Permalink
pre release changes
Browse files Browse the repository at this point in the history
closes #102 fixes #130 fixes closes #92 closes #65 closes #33 closes #30
  • Loading branch information
christophlingg committed Jan 16, 2015
1 parent d02728c commit 721add4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,25 @@ photon requires java, at least version 6.

get photon
```bash
wget http://photon.komoot.de/data/photon-0.1.2.jar
wget http://photon.komoot.de/data/photon-0.2.0.jar
```

download search index (31 gb compressed, 66 gb uncompressed, worldwide, languages: English, German, French and Italian)
download search index (26 gb compressed, 47 gb uncompressed, worldwide coverage, languages: English, German, French and Italian)
```bash
wget http://photon.komoot.de/data/photon_data_140706.tar.bz2
lbzip2 -d photon_data_140706.tar.bz2
tar xf photon_data_140706.tar
wget http://photon.komoot.de/data/photon_data_150112.tar.bz2
tar -xjf photon_data_150112.tar.bz2
# you can significantly speed up extracting using lbzip2:
tar -xf photon_data_150112.tar.bz2 --use-compress-prog=pbzip2
```

start photon
```bash
java -jar photon-0.1.2.jar
java -jar photon-0.2.0.jar
```

Check the URL `http://localhost:2322/api?q=berlin` to see if photon is running without problems. You may want to use our [leaflet plugin](https://github.com/komoot/leaflet.photon) to see the results on a map.

discover more of photon's feature with its usage `java -jar photon-0.1.2.jar -h`.
discover more of photon's feature with its usage `java -jar photon-0.2.0.jar -h`.
Expand All @@ -48,7 +49,7 @@ If you need search data in other languages or restricted to a country you will n
Once you have your [nominatim](https://github.com/twain47/Nominatim) database ready, you can import the data to photon:
```bash
java -jar photon-0.1.2.jar -nominatim-import -host localhost -port 5432 -database nominatim -user nominatim -password ... -languages es,fr
java -jar photon-0.2.0.jar -nominatim-import -host localhost -port 5432 -database nominatim -user nominatim -password ... -languages es,fr
```
The import of worldwide data set will take some hours/days, ssd disk are recommended to accelerate nominatim queries.
Expand All @@ -63,7 +64,7 @@ export NOMINATIM_DIR=/home/nominatim/...
### Search API
#### Start Photon
```bash
java -jar photon-0.1.2.jar
java -jar photon-0.2.0.jar
```
#### Search
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>de.komoot.photon</groupId>
<artifactId>photon</artifactId>
<version>0.2-SNAPSHOT</version>
<version>0.2.1-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down

0 comments on commit 721add4

Please sign in to comment.