ZenMap is a Java-based application designed to manage and analyze geographical data using Neo4j, a graph database. The project focuses on modeling and querying street networks, allowing users to find the shortest paths between different locations.
- Graph Database Integration: Utilizes Neo4j to store and manage geographical data.
- Street Network Modeling: Represents streets, tracks, and intersections as nodes and relationships in a graph.
- Shortest Path Calculation: Provides functionality to calculate the shortest path between two street names.
- Data Fetching and Processing: Integrates with external data sources to fetch and process geographical data.
-
src/main/java: Contains the main Java source code.dev/joordih/zenmap/managers/nodes: Defines the node entities such asLane,Track, andIntersection.dev/joordih/zenmap/managers/strategy: Contains strategies for data fetching and processing.dev/joordih/zenmap/managers/repository: Provides repository interfaces for accessing and managing nodes in the database.
-
config/settings.yml: Configuration file for project settings.
- Java 23 or higher
- Neo4j Database
- Maven
-
Clone the repository:
git clone https://github.com/joordih/zenmap.git cd zenmap -
Configure Neo4j:
- Ensure Neo4j is installed and running.
- Update the connection settings in
config/settings.yml.
-
Build the project:
mvn clean install
-
Run the application:
mvn exec:java -Dexec.mainClass="dev.joordih.zenmap.Zenmap"
- Finding Shortest Path:
- Use the Neo4j query interface to execute queries for finding the shortest path between two street names.
- Example query:
MATCH (startLane:Lane {name: "Carrer de la Pau"}) MATCH (endLane:Lane {name: "Carrer de Sant Miquel"}) MATCH (startTrack:Track)-[:CONNECTS]-(startLane) MATCH (endTrack:Track)-[:CONNECTS]-(endLane) MATCH path = shortestPath((startTrack)-[:CONNECTS*]-(endTrack)) RETURN path
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support, please contact jxaviermachor@gmail.com or open an issue on GitHub.