Version 1.3.0

Smart Route Planning
for Your Travels

Discover the smart way to travel with real-time route optimization, interactive maps, and offline capabilities. Find up to 3 distinct route options with distance and fare information. Explore tourism spots, healthcare facilities, and lifestyle destinations.

Best Route
24 min • 6.9 km
Fastest
Leguna
৳20 • 2.7 K.M
Bus No.10
৳15 • 4.2 K.M

Engineered for exploration.

A complete toolkit for modern navigation, built with performance and offline-first principles. Find up to 3 distinct route options with distance and fare information. Discover healthcare facilities, tourism spots, lifestyle destinations, and quickly access your recent places.

expo-sqlite react-native-maps google-maps photon-api

Local Route Optimization

Custom pathfinding algorithms calculate up to 3 distinct route options entirely on-device. Reduces latency by avoiding server roundtrips for recalculations.

Offline-First Architecture

Seamlessly transition between online and offline modes. Routes, map data, and search history are cached locally using Expo SQLite.

Healthcare Finder

Instantly locate nearby hospitals and doctors with our integrated healthcare search. Uses OpenStreetMap data for comprehensive coverage.

Multi-Modal Navigation

Compare up to 3 route options by vehicle type (Bus, Taxi, Walk), fare estimation, and distance. Includes logic to visualize different legs of a journey.

Secure Backend

Powered by Google Maps, Photon & Appwrite

Robust integration with Google Maps for rendering and Photon API for geocoding. Secured with Appwrite for authentication and data management. The app leverages local SQLite database for caching user favorites and history across sessions.

  • Map Rendering
  • Location Services
  • User Authentication
  • Geocoding
  • Place Search
  • Data Security

import { MapView } from 'react-native-maps';

import { fetchPhotonResults } from '../lib/pathfinder';

import { account } from '../lib/appwrite';

const mapApiKey = 'YOUR_GOOGLE_MAPS_API_KEY';

// Integrated mapping, geocoding and authentication

Search & Geocoding

Integrated Photon API for forward/reverse geocoding with smart caching. Includes "Current Location" detection using Expo Location services.

Central Station...

Real-time Tracking

Track your location and heading in real-time with smooth animations. Get live updates on your journey progress.

Live Tracking

Adaptive Theme System

Switch between dark and light themes based on your preference or system settings for comfortable viewing. Theme preference is saved across sessions.

Theme Toggle

Travel Place Discovery

Discover detailed information about tourist attractions, including photos, descriptions, best visiting times, and visitor tips. Get directions directly to any location.

Place Details & Photos

Quick Access to Recent Places

Easily access your frequently visited locations with the recent places feature. History is automatically saved and synced across sessions.

Home

123 Main St

Office

456 Business Ave

Market

789 Shopping Blvd

Gym

101 Fitness St

Discover Tourism & Lifestyle

Explore popular destinations and lifestyle spots tailored to your interests.

Popular Tourist Spots

Discover the most visited attractions and hidden gems in your area.

Museums Landmarks Parks

Lifestyle Destinations

Find the best cafes, restaurants, and entertainment venues nearby.

Cafes Restaurants Bars

Shopping Centers

Locate malls, markets, and specialty stores for all your shopping needs.

Malls Markets Boutiques

Healthcare Facilities

Find hospitals, clinics, and doctors near you when you need them most.

Hospitals Clinics Doctors

The Routing Engine.

Inside the logic layer of TravX. How we process navigation data instantly.

1. Intelligent Location Matching

When you search for a location, our system first uses advanced string similarity algorithms (Levenshtein Distance and Jaro-Winkler) to find the best match in our local database before querying external APIs. This approach reduces API calls by up to 40% and provides faster results.

findBestMatch(query, localCache);

2. Route Graph Construction

We build a comprehensive graph where locations are nodes and route segments are edges. Each edge is weighted based on distance and transport mode (Bus, Taxi, Walk), creating a rich network for pathfinding algorithms to navigate.

3. Multi-Route Discovery

Using our custom Depth-First Search algorithm, we explore multiple paths to find up to 3 distinct route options. Unlike simple shortest-path algorithms, our approach balances distance differences to provide meaningful alternatives for users to choose from.

4. Route Optimization & Visualization

Once routes are calculated, we merge segments by transport mode and calculate accurate fare estimates. The final coordinate arrays are rendered on Google Maps with distinct colors for different transport legs, providing clear visual guidance.

5. Performance Optimization

Our custom pathfinding algorithm is 85-95% more efficient than a generic Depth-First Search implementation. Through intelligent pruning techniques, state-based memoization, and early termination, we achieve up to 20x faster execution while using 90% less memory. This optimization is crucial for providing instant route calculations even on older devices.

lib/pathfinder.js

export const findTop3DistinctRoutes = async (start, end) => {

const db = await SQLite.openDatabaseAsync("routes.db");

const routeCache = new Map();

const bestRoutes = [];


// Custom DFS implementation for finding 3 distinct routes

const dfs = async (currentNode, path, totalDistance, visited) => {

...

};


await dfs(start, [], 0, new Set());

return bestRoutes;

};

Technical Specifications

Built with the Expo ecosystem for cross-platform consistency.

Navigation & Routing

Filesystem based routing with up to 3 route options

expo-router

Local Database

SQLite engine for caching routes & offline mode

expo-sqlite

Interactive Maps

Google Maps integration with custom markers & polylines

react-native-maps

Webview Integration

Route preview in Google Maps & place details

react-native-webview

Ready to explore smarter?

Experience smart route planning with Google Maps integration, offline capabilities, healthcare finders, tourism guides, and up to 3 route options with fare information.

Farewell Note

This conceptual project marks the end of our journey with TravX. While we envisioned expanding it to a country scale, the resources required proved too substantial for our small team. We hope you've enjoyed exploring our ideas and find the code useful for your own geographical mapping projects. Thank you for your interest!