Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func Handle() {
Value: false,
},
},
Usage: "Triggers a generation of map data from 'map.osm.pbf'",
Usage: "Triggers a generation of map data from the pbf given by --input-file",
Action: func(ctx context.Context, cmd *cli.Command) error {
offlineSettings := maps.OfflineSettings{
Box: m.Box{
Expand Down
2 changes: 1 addition & 1 deletion maps/generate_offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func generateAreas() []Area {
func GenerateOffline(s OfflineSettings) {
slog.Info("Generating Offline Map")
EnsureOfflineMapsDirectories(s)
file, err := os.Open("./map.osm.pbf")
file, err := os.Open(s.InputFile)
if err != nil {
slog.Error("could not open map pbf file", "error", err)
panic("failed to read maps, exiting")
Expand Down
Loading