Key Takeaways
•
View total pins, visited pins, and wishlist pins at a glance.
•
Discover how many countries and continents you've explored, auto-detected from GPS coordinates.
•
Explore an interactive 3D globe with visited countries highlighted and real-time geographic data.
The Statistics screen in Peel The Map turns your pins into a fascinating travel report. At a glance you can see how many countries you've visited, which continents you've explored, and even view an interactive 3D globe with your travel routes.
1. The Statistics Dashboard
The dashboard shows four key metrics: total pins, visited pins, wishlist pins, and the continent breakdown. Each metric is calculated in real-time from your pin data, with AsyncStorage caching for optimal performance.
2. Country Tracking
The system automatically detects the countries you've visited by analyzing the GPS coordinates of each pin. Using the CountryToISO and CountryToContinent databases, each pin is geolocated and associated with its corresponding country and continent. The visited countries list updates dynamically.
3. Continent Breakdown
Beyond the total country count, the dashboard shows how many countries you've visited in each continent. This breakdown helps you understand which areas of the world you've explored most and where to focus your next trips.
4. Top Tags Insights
The "Top Tags" section analyzes all your pins and shows the categories you use most frequently. This analysis processes each pin's tag strings, giving you an overview of your travel habits and the types of places you prefer.
5. The Interactive 3D Globe
The GlobeViewer is a 3D component that displays an interactive globe with your visited countries highlighted. Geographic data (GeoJSON, approximately 10-20MB) is lazily loaded from countryService and rendered on a WebView. You can rotate and zoom the globe to explore every corner of the world.
6. Performance and Caching
For optimal performance, statistics are cached in AsyncStorage. This avoids full recalculations every time you open the screen. The globe's geographic data is preloaded by MapDataContext, so when you navigate to the Statistics screen it's already ready for display.
FAQ
How does the globe know which countries I've visited?
The globe automatically detects visited countries from the GPS coordinates of your pins. It uses the CountryToISO database to match coordinates to countries and CountryToContinent for continent breakdown.
Can I see statistics for individual continents?
Yes, the dashboard automatically shows the breakdown by continent based on your pins' geographic data. Each continent displays the number of countries visited within it.