Baidu maps Android SDK or IOS SDK or a variety of API tools products, are using Baidu's own encrypted coordinate system.
Many developers in the use of the process, location points are obtained through GPS or other means, so with the Baidu map used by the coordinate system there are differences.
When developers apply these spatial location information to map maps, they need to respond with a corrective (coordinate conversion), and the Android SDK has already opened up a responsive coordinate transformation method for the vast majority of developers,
Developers need just a few lines of code to achieve the corresponding coordinate conversion operations.
Here's how:
Convert Google Maps, Soso maps, Aliyun maps, MAPABC maps, and AMAP maps/coordinates to Baidu coordinates coordinateconverter converter = new Coordinateconverter (); Converter.from (Coordtype.common); SOURCELATLNG to convert coordinates converter.coord (SOURCELATLNG); LATLNG deslatlng = Converter.convert (); GPS device acquisition of the original GPS coordinates converted to Baidu coordinates coordinateconverter converter = new Coordinateconverter (); Converter.from (COORDTYPE.GPS); SOURCELATLNG to convert coordinates converter.coord (SOURCELATLNG); LATLNG deslatlng = Converter.convert ();
For more information, please refer to our official website: Http://developer.baidu.com/map
Baidu Map Android SDK-coordinate conversion method