Code Monkey home page Code Monkey logo

street-map-project's Introduction

Street-Map-Project

CSC172 Project4 Name: Shuran Zhang Net ID: szhang73 E-mail: [email protected]

-The project includes four classes in total: -Node.java: stores for all nodes existed in maps with their IDs, distances, longitudes, latitudes, previous nodes -Edge.java: stores edges between two nodes with their IDs and weights -Graph.java: the class to find the shortest distance between any two nodes on maps -Includes the method of Dijkstra algorithm that find the shortest distance between two nodes -StreetMap.java: the main class to construct street maps and to run the whole program -Includes the paintComponent method that draws street maps of three places

-Instruction -Use command line to run for the first time. -After the frame opened after the first run, you can either use normal command line or type command Line in the textfield on the top. -When type the txt file name, —show, and the —directions command, the map with the shortest path will be shown in the canvas and a detailed path as well as the total distance of the path in miles will be printed in the console. -When type the txt file name and -show, only the map will be shown in the canvas. -When type the txt file name and the -direction command, the map will also be shown in the canvas.

-Possible Extra Credit Implementation -Enable the user ti directly type the command line in the textfield after the first run. -Label all major cities/areas/cities in NYS, Monroe and UR map. -Use thicker line to highlight the shortest path -Make the overall map look prettier with colors and different fonts

Thanks!:)

street-map-project's People

Contributors

shuranzhang avatar

Watchers

 avatar

Forkers

shirleyzxy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.