-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # src/main/java/org/matsim/contrib/josm/actions/NetworkTest.java
- Loading branch information
Showing
36 changed files
with
989 additions
and
708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/** |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.matsim.contrib.gtfs; | ||
|
||
import javafx.application.Application; | ||
import javafx.stage.Stage; | ||
|
||
public class LineBrowser extends Application { | ||
|
||
public static void main(String[] args) { | ||
launch(args); | ||
} | ||
|
||
@Override | ||
public void start(Stage primaryStage) throws Exception { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/org/matsim/contrib/josm/actions/DownloadVBBAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.matsim.contrib.josm.actions; | ||
|
||
import org.openstreetmap.josm.Main; | ||
import org.openstreetmap.josm.actions.JosmAction; | ||
import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; | ||
import org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler; | ||
import org.openstreetmap.josm.data.Bounds; | ||
|
||
import java.awt.event.ActionEvent; | ||
|
||
import static org.openstreetmap.josm.tools.I18n.tr; | ||
|
||
/** | ||
* Action that opens a connection to the osm server and downloads MATSim-related | ||
* map data. | ||
* | ||
* An dialog is displayed asking the user to specify a rectangle to grab. The | ||
* url and account settings from the preferences are used. | ||
*/ | ||
public class DownloadVBBAction extends JosmAction { | ||
|
||
/** | ||
* Constructs a new {@code DownloadAction}. | ||
*/ | ||
public DownloadVBBAction() { | ||
super(tr("Download VBB..."), null, tr("Download VBB."), null, true); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(ActionEvent e) { | ||
DownloadOsmTask task = new DownloadOsmTask(); | ||
String query = | ||
String.format("[timeout:%d];", MyOverpassDownloader.TIMEOUT_S) + | ||
"rel[\"type\"=\"route_master\"][\"network\"=\"Verkehrsverbund Berlin-Brandenburg\"];" + | ||
"out meta;"; | ||
Main.worker.submit(new PostDownloadHandler(task, task.download(new MyOverpassDownloader(query) ,true, new Bounds(0,0,true), null))); | ||
} | ||
|
||
} |
Oops, something went wrong.