One of the most useful features on today’s smartphones is GPS and mapping software. When this doesn’t work, it can really hurt the user experience and become unsafe. This is why I am glad that Google continues strive to improve upon Maps and their Maps API is no different.
With the new Google Play services v2.0, there were updates to a lot of Android features. These updates included an update to the Maps API. The new Maps API is now easier to use and includes a number of new features that were not present before. To achieve some of these features the developer used to have to code their own solution. One of these features is the 2d and 3d views that allow a user to tilt and rotate with gestures. The new Maps API now includes a number of indoor maps and there is also support for Map Fragments. To instantiate the Map Fragment, simply include:
Among other new features include the use of Photo Sphere. If you are unfamiliar with Photo Sphere, it is essentially a way of creating 360 degree panoramas. These can then have locations attached and shared in Google Maps or Google Earth. Since Photo Sphere is an open format, anyone can create or view these images on a mobile device. The example code with the new Maps API to determine if an image is Photo Sphere or not and then open it in the respective application is:
The new Maps API includes so many new features and made so many tasks easier, I am wishing that this was out earlier for previous map based applications I have worked on. In the future it will be exciting to use the API and really take advantage of it’s new features.
Have you used the new API, if so what feature do you like the most?