Using Baidu API (JS), how to get latitude and longitude by address

Source: Internet
Author: User

Find a specific address based on latitude and longitude:
Http://api.map.baidu.com/geocoder?location= latitude, longitude &output= output format type &key= user key
Such as:
http://api.map.baidu.com/geocoder?location=31.407452,121.490523&output=json&key= 6eea93095ae93db2c77be9ac910ff311

Find the latitude and longitude according to the specific address:
http://api.map.baidu.com/geocoder?address= address &output= output format type &key= user key &city= city name

Such as:
http://api.map.baidu.com/geocoder?address= Mudanjiang Road Business Hall &output=json&key=6eea93095ae93db2c77be9ac910ff311 &city=, Shanghai

Https://zhidao.baidu.com/question/497003122.html

Using Baidu API (JS), how to get latitude and longitude by address

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.