Skip to content

IsraelHikingMap/planet-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planet-Search

Codecov

A combination of planetiler and elasticsearch to create tiles for points for interest on one hand and a searchabale index on the other.

This repo allows both the creation of global POIs PMTiles using planetiler and also creating a global search using elasticsearch.

Additional arguments to this wrapper besides the Planetiler's arguments:

Parameter Name Description Default Value
languages A comma separated list of languages to add to the tiles and search en,he
es-address The address of the Elasticsearch database http://localhost:9200
es-points-index-alias The alias of the index to insert points into, it will create "1" and "2" suffix for the relevant index before switching points
es-bbox-index-alias The alias of the index to insert bounding boxes into, it will create "1" and "2" suffix for the relevant index before switching bbox

To run using docker (While having a local elasticsearch running at 9200):

docker run --rm --network=host -e JAVA_OPTS="-Xmx4g -Xms4g" -v "$(pwd)/data":/app/data ghcr.io/israelhikingmap/planet-search --download

To compile run:

mvn package

To run do:

java -jar ./target/planet-search-1.0.jar

To serve the PMTiles run:

docker run --rm -p 7777:8080 -v $(pwd)/data/:/data/ --rm protomaps/go-pmtiles serve /data/ --public-url=http://localhost:7777 --cors=\*

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages