Google online explains the longitude and latitude of the location of the WebService Service

Source: Internet
Author: User

Recently, I was engaged in map development and wanted to know the longitude and latitude of the specific location. So I looked for it online and found that Google and Baidu both wanted to provide such WebService services.

The following is a specific service URL. The specific effect is as follows:

Http://maps.googleapis.com/maps/api/geocode/json? Address = Guangzhou Baiyun Hotel & sensor = false

After you press enter in the address bar of your browser, you can see the following content:

{"Results": [{"address_components": [{"long_name": "", "short_name": "", "types ": ["bus_station", "transit_station"] },{ "long_name": "Yuexiu District", "short_name": "Yuexiu District", "types": ["sublocality ", "Political"] },{ "long_name": "Guangzhou", "short_name": "Guangzhou", "types": ["locality", "political"]}, {"long_name": "China", "short_name": "cn", "types": ["country", "political"] },{ "long_name ": "510060", "short_name": "510060", "types": ["postal_code"]}], "formatted_address": "Baiyun Hotel, Yuexiu District, Guangzhou, China zip code: 510060 ", "Geometry": {"location": {"Lat": 23.136020, "LNG": 113.2880440}, "location_type": "Approximate", "viewport": {"Northeast ": {"Lat": 23.13736898029150, "LNG": 113.2893929802915}, "Southwest": {"Lat": 23.13467101970850, "LNG": 113.2866950197085 }}, "types ": ["bus_station", "transit_station"]}], "status": "OK "}

In this way, I can know the longitude and latitude of the specific location! Here, red marks the longitude and latitude!

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.