Skip to content

kechenkristin/BearMap

Repository files navigation

BearMap

About The Project

This project is from UCB CS61B fall 2018 project4. https://sp18.datastructur.es/materials/proj/proj3/proj3 It is a web mapping application inspired by a former TA’s time on the Google Maps team and the OpenStreetMap project, from which the tile images and map feature data was downloaded. Working with the back end - the web server that powers the API that the front end makes requests to.

Features

  1. Scrolling and Zooming avatar avatar avatar avatar

  2. Route finding (similar to Google Maps) and Navigation

Double click a start point and end point to find the shortest path. avatar avatar avatar

  1. Autocomplete

avatar

Build With

SAX parser OSM XML JAVA Collection framework

Implementation Ideas

  1. Scrolling and zooming: The user’s web browser provides a URL to the Java program, and the Java program will take this URL and generate the appropriate output by using rastering algorithm, and the output will displayed in the browser.

  2. Working with a real world dataset presented in the OSM XML file format, using SAX parser( an “event-driven online algorithm for parsing XML documents” ) to parse XML element into java object, and create a graph datastructure to represent the info for the project.

  3. Implementing A* algorithm to find the shortest path and using the A* search route to generate a sequence of navigation instructions.

  4. An Autocomplete system where a user types in a partial query string, like “Mont”, and is returned a list of locations that have “Mont” as a prefix. Implementing this feature by using trie data structure, traversing to the node that matches the prefix (if it exists) and then collect all valid words that are a descendant of that node.

Usage

Build the project, run MapServer.java and navigate your browser (Chrome preferred; errors in other browsers will not be supported) to localhost:4567 If you get a “404 Not found” error, you can open src/static/page/map.html manually by right clicking and going to Open In Browser in IntelliJ.

Contact

Author: Kechen Liu

Email: [email protected]

Project Link: https://github.com/kechenkristin/BearMap

About

A map(of Berkeley) application mimics Google map

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published