Abstract
With the development of mobile Internet, more and more people begin to get convenient service by mobile phones. Obtaining one's current location by GPS positioning or network positioning has become one of the important foundations in most applications of location based service. In this paper, we designed and implemented a personalized positioning and navigation system based on the Android platform. With the combination of GPS positioning and network positioning, and using Google Map API, this system provides the following functions: view the current location, get the navigation route, address query and view historical location records.
Introduction
As mobile internet usage surged in the early 2010s, Location-Based Services (LBS) became a cornerstone of the smartphone experience. However, developers faced significant challenges in creating seamless experiences that balanced accuracy with availability. While GPS is highly accurate, it often fails indoors and consumes significant battery; conversely, network-based positioning (via cell towers or WiFi) works indoors but lacks precision. This paper addresses the need for a unified system that leverages the strengths of both positioning methods while providing a user-friendly interface for navigation and historical data management on the Android platform.
System Architecture and Methods
The authors implemented a Client/Server (C/S) architecture organized into four distinct layers: a UI Presentation Layer for user interaction, a Logic Process Layer for data handling, a Data Access Layer for intermediary operations, and an Information Layer. The Information Layer utilizes a server-side database to store user history, which helps conserve local device resources.
Hybrid Positioning Logic
A core technical contribution of the system is its hybrid positioning strategy. The application utilizes the LocationManager class to prioritize GPS signals. If a GPS fix is unavailable—common in indoor or dense urban environments—the system automatically falls back to network-based positioning. This ensures that the user always has access to location data.
Navigation and Geocoding
For navigation, the app communicates with the Google Direction API via HTTP requests. It parses JSON response packets to extract key route information, such as coordinates, total distance, and estimated duration, which are then rendered as a custom overlay on the map. Additionally, the Geocoder class enables bidirectional translation between human-readable addresses and geographic coordinates (latitude and longitude).
Key Insights
- Automated Fallback Strategy: The logic for checking GPS status and verifying location objects ensures reliability in "urban canyons" where satellite signals are often obstructed.
- Resource Offloading: By hosting the historical database on a server rather than storing extensive logs locally, the mobile client remains lightweight and efficient.
- JSON Efficiency: The authors specifically highlight the use of JSON for the Navigation Route Module, noting its superior parsing efficiency compared to more verbose formats like XML.
Implementation Results
The system was successfully validated on a Google Nexus S running Android 4.0.3 (Ice Cream Sandwich). Functional testing confirmed the successful integration of real-time tracking, reverse geocoding for street addresses, and route calculation for both driving and walking modes.
Users were able to upload location "breadcrumbs" to the server and retrieve them through a dedicated history view, which displays records in a list or as pins on a map. This demonstrates the system's ability to handle persistent historical data effectively.
Limitations and Future Work
Despite its successful implementation, the system faces hardware-related constraints, such as high power consumption from GPS and signal loss in dense indoor areas. Future work may explore social features, such as real-time friend tracking, and offline caching for maps and routes to reduce dependence on a constant data connection.
Summary updated