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!