The first appearance
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvdtaxmdeymziwoa==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center "Width=" >
Before downloading the code, the code can only be executed in real-time test, the simulator will be error. Because the demo is very expensive. So..
。 The stare in the code is very full, because I am a novice, write good not to laugh.
Code Download: Demo
Function Description:
1. Location recording function.
2. The location is sent to the service side.
3. Track playback.
4. Search for people who are in use nearby.
Button Introduction:
1. Start button:
Turn on the timer. Gets the current location every two seconds and logs it to the local database. At the same time that the route is recorded, data is sent to the server every 30 seconds.
2. Upload button:
Records data that could not be uploaded due to network reasons in the route.
The Local database table sets the field uploads and does not upload the data to mark.
3. Query button:
Click the button pop-up Time selection box, select the start time, end time, identify the route from the local database for that time period, and map the route on it.
4. Nearby button:
Click nearby Button,client to send a request to the server side. A vehicle that submits data from the server-side database for nearly 30 seconds and within a latitude/longitude range (see below for a note implementation method) returns to the Client,client call distance calculation method to continue filtering. And mark it on the map.
Start by importing the framework:
Mainly used for databases, network requests, Baidu map.
The Basic class:
Code:
The code stares very full. Welcome to the discussion.
In this is to say about the point of access to the three-point angle algorithm. To reduce the amount of data.
The algorithm is already written in the code. But there is no practical use.
Speed determines the point density and so on.
Welcome message discussion.
Rookie sincerity.
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
IOS Baidu Map Small features Demo