https://github.com/jongiddy/barefoot-map-db-file
Convert Barefoot database to file
https://github.com/jongiddy/barefoot-map-db-file
Last synced: 3 months ago
JSON representation
Convert Barefoot database to file
- Host: GitHub
- URL: https://github.com/jongiddy/barefoot-map-db-file
- Owner: jongiddy
- Created: 2017-08-05T08:23:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T16:26:52.000Z (almost 8 years ago)
- Last Synced: 2025-01-06T09:46:13.680Z (5 months ago)
- Language: Java
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Barefoot Map File Maker
Convert the contents of a Barefoot roads database to a file.
To use a file input to map match:
- Build this code using Maven:
```sh
$ mvn install
```- Run the JAR file from the `target` directory to create a roadmap file with a `.bfmap` suffix;
```sh
$ java -jar barefoot-mapfilemaker-1.0-SNAPSHOT-jar-with-dependencies.jar /vagrant/db.properties /vagrant/mymap.bfmap
```- Set the database property `database.name` to the path of the roadmap file without the suffix. The `database.road-types` property must also exist, but other properties are ignored:
```properties
database.name=/vagrant/mymap
database.road-types=/vagrant/road-types.json
```
- Call `Loader.roadmap` with the second argument set to `true`.
```java
RoadMap map = Loader.roadmap("/vagrant/db.properties", true).construct();
```