Closed Mararsh closed 1 year ago
Example, when query map data: http://api.tianditu.gov.cn/geocoder?postStr={%27lon%27:116.43997,%27lat%27:39.8992,%27ver%27:1}&type=geocode&tk=0ddeb917def62b4691500526cc30a9b1
This address will cause new URI(address).toURL() fail to work, while new URL(address) still work. So use new URL(address) to query some data although it is Deprecated.
Example, when query map data: http://api.tianditu.gov.cn/geocoder?postStr={%27lon%27:116.43997,%27lat%27:39.8992,%27ver%27:1}&type=geocode&tk=0ddeb917def62b4691500526cc30a9b1
This address will cause new URI(address).toURL() fail to work, while new URL(address) still work. So use new URL(address) to query some data although it is Deprecated.