Skip to content

About

Easy to use OpenStreetMap editor for Android and iOS

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

13,161 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVIV ScoutRoute (Kotlin Multiplatform)

AVIV ScoutRoute is a field data collection app from the Taskar Center for Accessible Technology (University of Washington). Surveyors log in with their TDEI account and open a workspace. They then answer questions about sidewalks, crossings, kerbs and other features on the map, and attach photos. Their answers are saved as OpenStreetMap-style edits in the workspace.

This repository is the next version of the app, for Android and iOS from one codebase. It is a fork of StreetComplete (from release v64.1), which already runs on both platforms with Kotlin Multiplatform and Compose Multiplatform. It replaces the Android-only GoInfoGame-Android app and the separate iOS app. The Android app keeps the same app id (net.opentoall.aviv.scoutroute), so it installs as an update of the current Play Store app.

Status: in development. The Android app is tested on the emulator against the DEV and STAGE environments. The iOS target compiles but has not been tested on a device yet.

Features

  • Login and workspaces: TDEI login (DEV / STAGE / PROD; the environment can only be changed in debug builds), the list of nearby workspaces, and switching between them. Each workspace has its own local database.
  • Long-form quests: each workspace's schema defines its quest types (element types, questions, dependent questions, numeric limits, images), and the quests appear as map pins. Pins use the workspace's custom icons.
  • Photos: photos taken for quests, notes and new features are uploaded to Panoramax, with their position, camera direction and capture time.
  • Long-press menu: create a note, or add a new feature from the workspace's feature presets.
  • Imagery: the layers button lists the background imagery that covers the map area.
  • Edit history: undo your edits. New features show their preset's icon.
  • Own UI: top bar with workspace, upload and Manage Quests; My Profile screen.

StreetComplete features AVIV doesn't use (its built-in quests, overlays, tracks, statistics, achievements, etc.) are hidden instead of deleted, with AvivFeatures.hideUpstreamFeatures. This keeps merges from StreetComplete small.

Not done yet: proactive token refresh, force-update check, avivscr:// deep-link login, biometric login, Firebase, and testing on an iOS device.

Project layout

Path What it is
app/src/commonMain/kotlin/de/westnordost/streetcomplete/aviv/ the AVIV code: auth, workspace, shell, longform, photos, createfeature, imagery, icons, ui, …
app/src/commonTest/.../aviv/ tests for the AVIV code
androidApp/ the Android app; AVIV's app id and version are at the end of build.gradle.kts
iosApp/ the Xcode project of the iOS app
.claude/PROGRESS.md the development log: what is done, how it was tested, what's next
.claude/UPSTREAM_TOUCHPOINTS.md every change to StreetComplete's own files, and why. Keep it up to date: merges from StreetComplete depend on it

The app's version is aviv.versionName / aviv.versionCode in gradle.properties.

Building

Requirements: JDK 25 (Android Studio's bundled JBR is fine) and the Android SDK. For iOS you also need a Mac with Xcode.

  1. Copy secrets.properties.example to secrets.properties and fill in the Panoramax tokens. This file is gitignored. Environment variables with the same name in UPPER_SNAKE_CASE (e.g. PANORAMAX_DEV_ACCESS_TOKEN) take precedence, e.g. in CI.
  2. Android:
    JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" ./gradlew :androidApp:assembleDebug
    The debug build installs next to the production app (id suffix .debug).
  3. iOS: open iosApp/iosApp.xcodeproj in Xcode and run. Xcode's build phase runs Gradle, which needs JDK 25. If Gradle can't find it, add this line to ~/.gradle/gradle.properties:
    org.gradle.java.installations.paths=/Applications/Android Studio.app/Contents/jbr/Contents/Home
    
    If the app on the device still looks like plain StreetComplete, the Gradle step failed: check the Xcode build log.

Tests (the desktop JVM target is the fastest):

./gradlew :app:desktopTest --tests 'de.westnordost.streetcomplete.aviv.*'

Tests never contact real OpenStreetMap or TDEI servers; they use Ktor's MockEngine.

Branches and updates from StreetComplete

  • kmp-port is the main branch.
  • master is an unchanged copy of StreetComplete's master.

StreetComplete's GitHub Actions workflows are disabled (.github/workflows/*.yml.disabled); tests run in the Android repository's actions for now.

To bring in a new StreetComplete release, merge its release tag, not master:

git remote add upstream https://github.com/streetcomplete/StreetComplete.git   # once
git fetch upstream --tags
git merge v65.0

Conflicts should only be in the files listed in .claude/UPSTREAM_TOUCHPOINTS.md. Don't open pull requests from this fork to StreetComplete.

License and credits

Built on StreetComplete by Tobias Zwick and contributors. Like StreetComplete, this software is released under the terms of the GNU General Public License v3.0 only (see LICENSE).

About

Easy to use OpenStreetMap editor for Android and iOS

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages