IOS Baidu Map Small features Demo

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.