Blog News Contact Get a proposal

Logistics · Mobile app

xRouten: refactoring a navigation app for delivery

xRouten is a navigation and route-planning service for delivery businesses. We carried out a large-scale refactor of an unstable Android app: stabilized it, fixed the logic of core routing and driver-tracking functions, and stopped user churn.

Legacy app refactoringFast route buildingDriver tracking on the mapDigital delivery paperworkCritical bug fixesApp Store and Google Play ready
xRouten — Logistics, delivery
xRoutenLogistics, delivery
ClientNavigation and route-planning service for delivery businesses
IndustryLogistics, delivery
PlatformsAndroid, iOS
Type of workRefactoring and stabilization

About the product

In short: what the product is and who we built it for.

xRouten is an app for drivers and delivery services that builds a route across dozens of stops, guides the driver on the map and records proof of delivery at every address. A dispatcher assembles a tour from orders, and the driver follows it along the optimal path, marking stops as complete and attaching supporting documents directly in the app.

The client didn't come to us for a build from scratch, but with an already working, yet unstable, product: the app suffered from poor performance, errors and critical bugs that directly hit the business — up to disrupted deliveries. The task was to stabilize the app, rewrite the problem areas and win back user trust.

The challenge

The app ran on legacy code and had accumulated critical problems: poor performance, freezes when building routes across dozens of stops, errors in core functions and bugs that made drivers lose tour data. Every such error cost the business dearly — disrupted deliveries and financial losses — and users started leaving.

The project was further complicated by a language and geographic barrier: the interface was in German, and route testing ran on maps of Germany. The team had to understand someone else's codebase without breaking what already worked, and systematically fix the most painful spots.

Project highlights

  • Deep work in legacy code, not a rebuild
  • High-stakes fixes tied directly to revenue
  • German-language UI, German map testing
  • Refactor built for future features
  • Real-time driver tracking
  • Ready for App Store and Google Play

Solution and approach

How we built the product, from architecture to process.

We started with an audit of the most unstable areas: route building, driver tracking and delivery confirmation caused the most failures. We rewrote the problem modules in clean Kotlin, optimized the route-calculation algorithm across dozens of points and removed the freezes.

In parallel, we cleaned up the core functions: smooth real-time display of drivers on the map, digital documentation with invoice generation and sending to customers, and a working payment system. The redesign improved the user experience, and the updated code base made the app ready for release on the App Store and Google Play.

Tech stack

Tools chosen to fit the product’s goals.

KotlinKotlinRefactoring of the Android app
Google MapsMaps and route building
AndroidAndroidPrimary platform

Why a refactor instead of a rebuild

Rewriting from scratch means losing accumulated business logic, adding extra risk and delaying delivery to users. A refactor keeps the parts that already work, removes the causes of instability and gives the product a second life without a full service stoppage.

The client side was moved to Kotlin — Android's official language — giving full access to maps APIs, background services and GPS without restrictions. We considered alternatives: React Native (faster start, but weaker map UX and limited GPS API access) and Flutter (close in capability, but a separate build chain). Native Kotlin was chosen because of the UX requirements for navigation and real-time tracking.

Product features

Key capabilities that solved the business problem.

Fast route building

An optimized algorithm calculates the path across dozens of tour stops without freezing.

Driver tracking on the map

Smooth, real-time display of staff locations for the dispatcher.

Digital documentation

Generating and sending invoices and delivery confirmations to customers right from the app.

Proof of delivery

At every stop the driver marks completion and attaches supporting documents.

Route stop card

Address, arrival window, notes, contact person and attachments for each order on the tour.

Payment system

A working payment module replaced the unstable legacy solution.

How it works

Key product screens, step by step.

xRouten tour map screen with numbered delivery stops and nearest-address card

Tour map and route stops

The driver's main screen is a map of the active tour with numbered delivery stops. Each point on the map shows its sequence number, and a card for the nearest address opens below it — for example, "Baumarkt, Gärtnerstraße 11, 12207 Berlin" with the note "Bitte vorher anrufen" (please call ahead).

From here the driver runs the tour: the "Nachweis" button records proof of delivery, "Tour stoppen" ends the route, and a compass and arrow help with orientation on the ground.

xRouten active route screen with blue navigation line and next-stop cardxRouten active route screen with blue navigation line and next-stop card

Active route with navigation

In the "Tour Dienstag" (Tuesday tour) mode, the app draws the route on the map as a blue line, connecting stops in the optimal order and guiding the driver from address to address.

The next stop's card shows the recipient "MangoGlück Fruchthandel, Kurfürstendamm 12, 10719 Berlin", the estimated arrival time "Ankunft: 08:22" and "Mehr" and "Nachweis" buttons — to open order details or confirm delivery.

xRouten order details card with attachments and add-attachment buttonxRouten order details card with attachments and add-attachment button

Order card and digital documents

Tapping a stop opens a detailed "Ziel" (destination) card: recipient address, arrival window, a note for the courier, order reference, contact person (Ansprechpartner) and the ordered assortment.

The same screen runs the digital documentation module — order attachments (image-adfe.jpeg, PDF-Plan.pdf) and an "Anhang hinzufügen" (add attachment) button, so the driver can attach a photo or PDF proof of delivery right at the stop.

xRouten tour stop list screen with search and entry counterxRouten tour stop list screen with search and entry counter

Tour stop list

Besides the map, the tour is also available as a list: the "Tour Dienstag" screen with a search field and a "17 Einträge" (17 entries) counter shows every address on the route in order.

Each row shows the recipient, address, arrival window and a "Nachweis" button: the driver sees the whole tour at a glance, finds the right stop quickly and confirms deliveries without switching back to the map.

Architecture and personal data

The app processes personal data of drivers and customers: geolocation, routes and contacts. Driver location data is transmitted only to calculate the route and isn't stored beyond what's necessary. Access to data is minimized by role.

Data is processed under the requirements of the client's jurisdiction, with role-restricted access and protection of operations and payment data used when generating invoices and delivery confirmations.

By the numbers

2platforms — App Store and Google Play
0critical bugs left after stabilization
Legacyrefactor instead of a rebuild from scratch
Real-timedriver tracking on the map

Deep refactor of legacy Kotlin code: stabilization without a full rebuild.

Critical errors and the instability that caused disrupted deliveries and customer loss were eliminated.

High-speed route building across dozens of stops without freezing.

Real-time driver tracking on the map.

Digital documentation module: invoices generated right from the app.

iOS and Android are both ready for release on the App Store and Google Play.

Frequently asked questions

How much does it cost to refactor a mobile app?

Cost depends on how deep the legacy-code problems run, how much test coverage is needed and the set of required features. We give an exact estimate after analyzing the codebase.

How is refactoring different from building from scratch?

Refactoring keeps the product's working parts and accumulated business logic. Building from scratch usually takes longer and means re-agreeing every feature with the client from zero. Refactoring is significantly faster and cheaper when the product's core already works.

How is route calculation across dozens of points sped up?

The optimized algorithm processes the route graph in memory and minimizes calls to external APIs when recalculating. The result is a fast response even across dozens of stops, with no interface freezing.

How is drivers' personal data protected?

Drivers' personal data (geolocation, routes, contacts) is stored on the client's servers within the client's jurisdiction. We hand over document templates covering the data-processing policy, regulator notification and a designated-responsible-person order as part of the delivery.

How long does a refactor like this take?

Timelines depend on the scope of problems, the test coverage needed and the set of new features. A typical range for refactoring a mid-complexity Android app is 10–16 weeks (an industry range, not a guarantee). We lock in exact timelines after a codebase audit.

Trusted by product teams across the US and Europe

Companies from retail, medtech, logistics and e-commerce that we helped build digital products.

SuperStep logo
Unilab logo
Plonq logo
Galamart logo
GROM Security logo
Move2Armenia logo
Moscow Windows logo
Fork & Spoon logo
Konga logo
xRouten logo
REHAU logo
AIS logo

YuSMP Group development services

The full spectrum of development — from native mobile apps to web platforms, AI and cloud. Pick a direction or order a turnkey project.

Mobile App Development

Native iOS & Android plus cross-platform Flutter and React Native — from MVPs to apps with millions of installs.

Learn more

iOS Development

Native Swift / SwiftUI iOS apps — with Apple Pay, Sign in with Apple, App Store Connect deployment pipelines.

Learn more

Android Development

Native Kotlin / Jetpack Compose Android apps — Material 3, Google Play release pipelines, Firebase integration.

Learn more

Flutter Development

Single Dart codebase across iOS, Android, web and desktop — with native modules where needed.

Learn more

Web Application Development

Production web apps on React, Next.js, Vue and Node — SaaS dashboards, B2B portals, marketing-conversion stacks.

Learn more

API Development Services

REST, GraphQL and gRPC APIs — designed for partners, mobile clients and internal microservices.

Learn more

Custom Software Development

Bespoke platforms for mid-market and enterprise teams — internal tools, vertical SaaS, mission-critical backends. Discovery to launch in 12–36 weeks.

Learn more

MVP Development

Focused MVPs in 12–20 weeks — one or two integrations, real users on day one, telemetry built-in.

Learn more

Product Engineering

End-to-end ownership of a digital product — design, build, ship and continuous evolution.

Learn more

AI Agents Development

Tool-using agents that plan, retrieve, act and self-evaluate — in customer service, ops automation, internal copilots.

Learn more

Cloud & DevOps

AWS, Azure and GCP architecture, Kubernetes, Terraform/Pulumi, CI/CD and observability — SRE-grade operations for product teams.

Learn more

Technical SEO & Growth

Technical SEO, Core Web Vitals, structured data, internal-link architecture — built into your engineering process.

Learn more

Need a mobile app rescued like this? Let's talk

Tell us about the app you already have and what's not working, and we'll help you scope a refactor that stabilizes it without a costly rebuild. Let's discuss how a similar process could work for your product.

Get a proposal

Share a few details and a senior consultant will reply within one business day.

Free project estimate — we’ll come back with a plan within 1–2 business days.
  • Requirements review and tech-stack recommendations
  • Estimate of timeline, budget and team composition
  • No commitment — just a clear plan

Email: sales@yusmpgroup.com

Phone: +374 44 871 811

Offices: KAMAR Business Center, Vazgen Sargsyan St. 2, Yerevan, Armenia · Remote — East-Coast US overlap (9 AM–1 PM ET)

— required fields