W
W
winny5672020-07-11 23:48:07
C++ / C#
winny567, 2020-07-11 23:48:07

The system allows you to track the location of vehicles. How to do it?

Hello.
At the university, they were asked to do the following work for practice:

Statement of the problem.

The system allows you to track the location of vehicles.

Main database tables: routes, drivers (coordinates received from the mobile device, driver name, driver code)

The database administrator, using the MVC web application, has full access to the database.

A web service is used to retrieve information from a database and communicate with applications that are clients of the service.

Clients:

· The driver, using a mobile application, transmits the coordinates of his location (instead of registering devices, he manually enters the latitude and longitude (latitude, longitude) into the mobile application.

· The dispatcher, using a desktop or web application, regularly views the route of a given driver and the current coordinates of the driver). Displays the driver's route and position on the map using the Maps API

. Please tell me how to implement this in a simple way, maybe you know similar projects. It's just that I don't understand how to combine different systems such as MVC, WPF, and also with an android application for uploading GPS coordinates.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eRKa, 2020-07-12
@kttotto

It's just that I don't understand how to combine different systems such as MVC, WPF, and also with an android application for uploading GPS coordinates.

Currently, most applications communicate with each other using the tcp / ip protocol, the most popular is http.
First of all, you need to implement a service for receiving messages from the tracker with its current coordinates. The service will be located at some address, this address is indicated in the tracker settings. If without aggravation, then it is implemented quite simply. The same service writes tracker data to the database.
Next, you need to implement a web api to get data about the tracker, its current location, and, possibly, for some period of time. That is, it will simply read data from the database for a specific tracker or some set of trackers upon request.
Next, the client is implemented. It can be anything: mvc, wpf, android, etc. The client requests data through your web api. If the data is needed in real time, then you will need to add an implementation on websockets.
In general, the statement bears little resemblance to the task of the university) Even for a test task in the office, it is quite voluminous.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question