To do lbs development almost 2 years, map-related products have done almost 3, used the map including Google Maps, high-gold map, Baidu map, figure Bar, Osmdroid, today summed up, easy to develop when you choose the right map.
First of all, the positioning module selection, high-gold map, Baidu Map now has a separate status SDK, and all support global positioning, are very good choice. I now do the project on the positioning requirements are very high, now the choice is GPS positioning using the system positioning method, base station positioning using Baidu positioning, GPS connection successfully using the System positioning interface, GPS switch to Baidu Base station positioning.
GPS positioning, Baidu and gold have been used, but the test found no similar product statistics of high precision, and often in some models have problems, such as some mobile phone positioning, status bar positioning status is always a flash, often drop line, record trajectory drift large, and later replaced by the system interface, a lot of stability, The user also feeds back a much more accurate track record. There are Baidu maps now use the Positioning SDK, the data returned no elevation data, which is not the use of Baidu GPS positioning a reason, do not know now there is no repair.
Base station positioning, feel Baidu than the high-speed data returned faster point, address resolution or search is also, do not know whether Baidu's data retrieval and large-scale processing capacity strong points, but also did not carefully contrast test, may not feel accurate.
Next the choice of the map, I now use Baidu vector map and osmdroid grid map, because the main is to do outdoor map, so the satellite map and contour map is necessary, and then consider the vector map data is very small, so also added, now can do Baidu vector, Google satellite maps and OPENCYCLEMAP One-click Switch, using 2 map frames, the interface package is very painful.
If only to do China's map products, Baidu, high-German is a good choice, the 2 now the interface is basically the same as the Googel interface, so 3 can be very fast switching between. Stability, I use after the feeling is Google Maps > Gold > Baidu, I myself have developed an application, the first to use Google Maps, and then Google was wall, replaced by gold, before the use of Google on the place, the switch after the report is abnormal, More restrictions, such as adding a track to the map, the track point must be greater than 2, and must set the icon, or the report is abnormal, but Google can be added first, and then set the data (record track, just Start no track point, so will first add a track to the map, and then to update the trajectory point data). Baidu recently iterative very fast, sometimes 2-3 weeks to update a version, often updated after a few problems, and there are a few changes in the interface is very large (the most pit dad, to develop a lot of extra work), the basic is the previous Baidu interface negative, and then changed to Google Interface, In terms of interface, Google is also a point, interface has become a reference standard. In addition, a colleague recently in the use of the high-German map, I found that there is no mapviewlayoutparams, I find the interface is not really good, the official reference example also does not have relevant examples, so that in a map to add a more complex view of the point is very troublesome, Don't know if there are other ways.
If you want to do a global service-oriented product, there seems to be no particularly good option on Android right now. Google is wall, and must have a mobile phone to have Google Service Framework, Baidu and gold and other domestic maps are only Chinese data, it seems only OpenStreetMap support the global data. OpenStreetMap itself supports a lot of map sources, the data all over the world, but mainly for outdoor, city map no other map so fine (of course, you can add Google's normal and satellite tile map source), and then you can customize some other source, Interested friends can take a look at GitHub above an open source framework osmdroid, which has some introductory articles on the Web.
Figure Bar Map, before the company's several products with the map bar maps, did a period of maintenance, and other maps have no special place, and now seems to have no vector map, the SDK has not been updated for a long time.
Finally, here are a few maps to make a summary:
Googel Map: GPs coordinate system, the most stable, satellite map fine, but in China service is wall, and mobile phone must have Google service Framework, in China basic not FQ not root is not available;
Gold Map: Mars coordinate system (GCJ), good stability, support global positioning, satellite map is not fine (many outdoor areas to enlarge no satellite data), but recently there is no mapviewlayoutparams colleague feedback, may be in the map to add a more complex view of the trouble, Do not know whether there are updates or other implementation methods, you can choose the first study. There is a default UI feel no Baidu fine beautiful.
Gold Map I have a small open source project on GitHub Thesceneryalong:https://github.com/john-chen/thesceneryalong, you can refer to the following;
Baidu Map: Baidu coordinate system, satellite map is not fine (many outdoor areas to enlarge no satellite data), version iterations more frequent, but the latest version is very stable, support global positioning, function iterations faster, map data loading quickly.
Osmdroid: Raster map, GPS coordinate system, can be customized to add other sources (perhaps other sources must first convert the coordinate system, such as the Google Map source to convert GPS coordinates to Mars coordinates, and then on the map display), there is an open source framework.
In addition to using the SDK to load the display map, you should also be able to load map via WebView, with JS control map, for the map layer is relatively simple to consider.
Well, let's wrap it up here and think about the other additions later. If you have any questions, please do not hesitate to exchange advice.
Selection of maps for Android map development