Android location API to obtain latitude and longitude values

Source: Internet
Author: User
Tags reverse geocoding
Use the android location API to obtain the longitude and latitude values

Http://www.cnmsdn.com/html/201004/1270187917ID3038_2.html

Http://jlins.javaeye.com/blog/550163

Android GPS

Http://dev.10086.cn/news/technologyproduct/4859.html

Geocoding and reverse geocoding are common operations in map operations. The former is to request spatial coordinates through street addresses, and the latter is to request street addresses through spatial coordinates. Generally, the two are the conversion between street addresses and latitude and longitude. For example, the former is obtained by entering the query "No. 1239, Siping Road, Yangpu District, Shanghai" (31.285207060526762, 121.50546412914991), while the latter indicates the inverse process.

In the actual mobile development process, map-related operations are widely used for geographic coding and anti-geocoding. Fortunately, the mapview control of Android encapsulates both of them, so Google map service can be conveniently used to query the two. The the development process.

You must first apply for a mapkey. A mapkey is required for any map display. The specific application steps are as follows:

Http://code.google.com/intl/zh-CN/android/maps-api-signup.html

Then you can createProgramAnd add map API support to androidmanifest. xml.

Related Article

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.