bboyrankingz / fpm

A tool to transform geographical data into an OSM compatible format. Which can be used with all OSM tools like JOSM, OSRM, ...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status

GitHub release

How to install

In the project root directory :

./build.sh

What this script does :

  • Add a third party lib into the local maven repo : net.morbz.osmonaut
  • Generate a jar, from source code, with maven
  • Generate a docker image with previous jar

How to use

Download

docker run --rm -v /tmp/tomtomfiles:/workspace -p 9501:9501 -t mappy/fpm com.mappy.fpm.batches.tomtom.download.json.MapContentDownloader /workspace yourToken 2016.09
cd /tmp/naturalEarth
wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/10m_cultural.zip
wget http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/physical/10m_physical.zip
unzip -o -j 10m_cultural.zip
unzip -o -j 10m_physical.zip

Generate

docker run --rm -v /tmp/tomtomfiles:/input -v /tmp/data:/output -p 9501:9501 -t mappy/fpm com.mappy.fpm.batches.GenerateFullPbf "Belgique,Luxembourg" "/input" "/output" Europe.osm.pbf 2
docker run --rm -v /tmp/data:/workspace -v /tmp:/inputFolder -t mappy/fpm com.mappy.fpm.batches.merge.MergeNaturalEarthTomtom

To generate tolls data, a tolls.json file must be present in the /input directory.

About

A tool to transform geographical data into an OSM compatible format. Which can be used with all OSM tools like JOSM, OSRM, ...

License:GNU General Public License v3.0


Languages

Language:Java 98.4%Language:HTML 0.8%Language:JavaScript 0.7%Language:Shell 0.0%