organicmaps/android
Arseny Novikov e6aaadf28f
[ios][android] Replacing altitude difference to ascent and descent (#3062)
* [ios][android] Replacing altitude difference to ascent and descent

The app for pedestrian and cyclists route  show altitude difference
between highest and lowest points. It's not too useful data in multiple
cases. More informative for hikers and cyclists from values of
elevation total ascent and total descent on route.
I replaced altitude difference to total ascent and total descent.

Routing:
- Removed calculation of minRouteAltitude and maxRouteAltitude. Added
  calculation of totalAscent and totalDescent (map/routing_manager.cpp)

iOS:
- Replaced altitudeDifference to 2 separate value totalAscent and
  totalDescent

android:
- Replaced altitudeDifference to 2 separate value totalAscent and
  totalDescent
- Removed unnessesary icon (ic_altitude_difference.webp)

Signed-off-by: Arseny Novikov <arseny.n@gmail.com>

* Applying style guide to map/routing_manager.cpp

Signed-off-by: Arseny Novikov <arseny.n@gmail.com>

* Fixes for route ascent/descent. Used unsigned var types and fix idents

Changes based on pull request (organicmaps/organicmaps#3062) code review.
- fixed idents
- used uint32_t instead int32_t for totalAscent and totalDescent fields
- replaced 2 guard variable initialization to one if

Signed-off-by: Arseny Novikov <arseny.n@gmail.com>

* Route ascent/descent. Fixed field description, final to java constant.

Signed-off-by: Arseny Novikov <arseny.n@gmail.com>

* Explicit cast from uint32_t to jint in jni for ascent/descent

Signed-off-by: Arseny Novikov <arseny.n@gmail.com>

* [ios] Route ascent/descent. Moved font attributes to static field

Signed-off-by: Arseny Novikov <arseny.n@gmail.com>
2022-08-02 00:05:49 +02:00
..
assets Updated hierarchy.txt, removed external_resources.txt 2022-04-19 16:18:55 +03:00
flavors [android] Update Logger usages to static calls 2022-06-15 17:21:00 +03:00
gradle/wrapper [android] Updated gradle and dependencies 2022-05-08 08:56:49 +02:00
jni [ios][android] Replacing altitude difference to ascent and descent (#3062) 2022-08-02 00:05:49 +02:00
res [ios][android] Replacing altitude difference to ascent and descent (#3062) 2022-08-02 00:05:49 +02:00
script Updated hierarchy.txt, removed external_resources.txt 2022-04-19 16:18:55 +03:00
src [ios][android] Replacing altitude difference to ascent and descent (#3062) 2022-08-02 00:05:49 +02:00
tests Replaced array of ints with list. 2022-02-18 12:49:04 +03:00
.gitignore [android][ios] Upload metadata and screenshots to AppStore / GooglePlay 2021-08-14 09:54:00 +03:00
AndroidManifest.xml [android] Replace com.mapswithme.maps.api with https://omaps.app/ 2022-07-25 16:23:24 +02:00
build.gradle [android] Properly print version and code in the build log 2022-07-06 02:06:59 +02:00
code_style_scheme.xml [android] Fixed c++ style in android studio code style scheme 2020-04-23 20:01:12 +03:00
debug.keystore Fixed configure.sh script and gh actions 2021-03-23 17:47:44 +01:00
gradle.properties [android] Sorted dependencies 2022-05-31 11:50:48 +03:00
gradlew [android] Updated gradle wrapper to the latest 7.3.3 version 2022-01-30 14:42:03 +01:00
gradlew.bat [android]: Secure Gradle version as suggested by linter 2021-03-14 19:20:35 +03:00
HOW_TO_USE_GRADLE.txt [docs] Expand and simplify dev env setup docs 2021-11-23 23:47:17 +03:00
ic_launcher-playstore.png [android][ios] New logo 2021-06-05 09:20:44 +03:00
multidex-config.txt [android] Refactor logging for simplicity and efficiency 2022-06-15 17:21:00 +03:00
proguard-mwm.txt [android] Proguard fix for release and beta builds 2022-06-14 09:34:09 +03:00