Giter Site home page Giter Site logo

parkingshare-application's Introduction

Parkingshare-Application

Breif Introduction

This is a ParkingShare System based on my another project 'Registration-and-Login-System'.In this project,people can share their free parking space with people and they also can find a free parking space.This system has two terminals.One is the client terminal(Android APP),the other is a server timinal(Python Flask).Android APP is open for users and server is used to manage the whole system.

Client Terminal

This terminal is an Android APP actually.The app is formed with 5 activities.(Login,Register,UserView,ShareParking Findparking).

Login and Register Activity

  The first activity is the Login Activty,this activiey and theother Register Activity are completely based on an other project I finished,so I won't mention these too much here.


Login

Login

User Activity

Here you can see two buttons.They mean two functions avaliable,you can press 'Share my parking space' to share your free parking space with people,or you can press 'Find a parking space' to find a free parking space.


Login

ShareParking Activity

Here you can share your free parking space(Before you want to share your parking space,please make sure you are standing at   the parking space).At first,you should name your shared parking space and give some description about it.Then press 'Get location' to get the GPS information(The system will mark your location in the googlemap),then submit it.Here are some pictures of possible cases below.


Locating

ShareView

sucess

FindParking Activity

 This activity is desiged for the people to find a parking space.At first,you can press the 'EXPLORE PARKINGSPACE' button

    to find some parking spaces(5 max in 5 miles) are close to your current location.Then the app will mark all these avalible parking spaces at google map,and you can get the names and descriptions at the google map(you even can get the navigation to the parkingspace you selected).When you have choose the parking space already,press the 'Start parking' button to occupy the space,the server will send you a push to inform your parking information meanwhile.When you finished the parking ,press 'Stop parking' to release the parking space.


ParkingAc

ParkingSpace Marker

Startparking

Stopparking

ParkinginfoPush

Server Terminal

In the server terminal,I use the Python(Flask) to build a web server to process all information.For the database,I use the Sqlite3 to build two databases.One is used to store the users information,the other is used to store the parkingspace information.Here are three important points below I want to mention.

1.How to get the 5 closet parking spaces?

 After I get the user's location.how can I get 5 closet parkingspaces from database,I got confused about this question for
 long time.I don't want use very complicated SQL language to achive this.As we all know,5 miles from user's location is a       circle,what I  did is find the largest rectangle in this circle,then find the parking spaces in this rectangle from     database,that's much easier than finding some locations from the range of a circle.
  <div align=center>

demonstration

2.Format of parkingspaces informations

 After the server get all parkingspaces information and want to send them back to the client.I use the JSON format to
 transmit these parkingsapce information

2.The Push from server

    When user park his car sucessfully,the server will send a push to the user to inform him.I used a third-party      Push API called Jpush(Jiguang) to achive this.When the user log in the App sucessusfully,the system will use the username as the alias and send it to the Jpush server.Then our parkingshare server can send jpush by username.

Here is the view of some logs in server

Logs

parkingshare-application's People

Contributors

s2117402 avatar

Watchers

James Cloos avatar  avatar

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.