iOS development and expansion Chapter-corelocation Brief Introduction

Source: Internet
Author: User

iOS development and expansion Chapter-corelocation Brief Introduction

First, Introduction

1. In the era of mobile internet, mobile apps can solve many of the user's life chores, such as

(1) navigation : Go to any unfamiliar place

(2) nearby : Find a restaurant, find a hotel, find a bank, find a cinema

2. In the above application, maps and positioning functions are used, in iOS development, in order to join the 2 major functions, must be based on 2 frameworks for development

(1) MapKit : for maps

(2)Core location: for geolocation

3. Two hot technical terms

(1)LBS : Location Based Service (targeting-based services)

(2) solomo:social Local Mobile (Solomon)

Ii. use of the corelocation framework

1.CoreLocation Framework Usage Prerequisites

(1) Import frame

description : After XCODE5, we no longer need to manually import

(2) Import the main header file

#import <CoreLocation/CoreLocation.h>

2.CoreLocation Frame Usage Notes

The prefix for all data types in the Corelocation framework is CL

Using Cllocationmanager objects in corelocation to do user positioning

Third, latitude and longitude of geographical information literacy

1.

  

2. Prime Meridian : Through the London Greenwenger Observatory

Go East (right), it's longitude (E)

Go West (to the left), it's longitude (W)

East and West 180 °, total 360 °

3. Equator : Zero dimension

Go North (top), Latitude (N)

Go south (below), it's southern latitude (S)

South latitude 90 °, a total of 180 °

Tip : The larger the longitude \ Latitude (1°≈111km), the greater the range, the smaller the things you see on the map

4. Latitude and longitude of our country:

(1) Latitude and longitude range of China

Latitude range: N 3°51′~ n 53°33′

Longitude range: E 73°33′~ e 135°05′

(2) Latitude and longitude of some cities

  

Four, analog position

Description : Set the analog location (latitude and longitude) of the phone simulator when testing the program.

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.