organicmaps/map
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
..
benchmark_tool [cmake] Refactored build configs for faster builds 2021-12-06 18:02:29 +01:00
extrapolation
extrapolation_benchmark Use base::Pow2(x) instead of generic std::pow(x, 2). 2022-06-17 01:01:35 +03:00
map_integration_tests [cmake] Refactored build configs for faster builds 2021-12-06 18:02:29 +01:00
map_tests [android] Custom title for om://crosshair API 2022-07-25 16:23:24 +02:00
mwm_tests [strings] Use string_view in FeatureType::GetName and similars. 2022-04-15 07:18:44 +03:00
power_management Fixed virtual destructors 2021-11-30 18:28:37 +03:00
style_tests [classifier][styles] Separate sport=* types. 2022-07-31 11:51:15 +03:00
transit [drape] Keep both hatching and filling area rules, if any. 2022-05-20 12:32:26 +03:00
api_mark_point.cpp
api_mark_point.hpp Renamed old stuff 2021-11-08 12:39:52 +01:00
benchmark_tools.cpp [base] Added IsExist. 2022-03-22 22:17:00 +03:00
benchmark_tools.hpp
bookmark.cpp [strings] Use string_view in StringUtf8Multilang and Tokenize. 2022-04-15 07:18:44 +03:00
bookmark.hpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
bookmark_helpers.cpp Remove sponsored from strings & styles 2021-12-12 08:46:48 +01:00
bookmark_helpers.hpp Removed cloud 2021-04-24 13:46:48 +03:00
bookmark_manager.cpp [ios] Added new edit abilities for tracks and bookmarks 2021-07-28 11:38:01 +03:00
bookmark_manager.hpp Warning fixes 2021-12-17 23:30:39 +01:00
bookmarks_search_params.hpp
caching_address_getter.hpp [search] Pass threshold in meters as a parameter in GetAddressAtPoint 2022-02-11 22:41:16 +01:00
chart_generator.cpp Fixed rounding error in the height chart 2021-08-26 07:56:35 +02:00
chart_generator.hpp
CMakeLists.txt [cmake] Add SKIP_TOOLS option (#2958) 2022-07-21 22:35:23 +02:00
elevation_info.cpp Fixes according to some clang-tidy warnings. 2021-12-17 17:07:04 +01:00
elevation_info.hpp
everywhere_search_callback.cpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
everywhere_search_callback.hpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
everywhere_search_params.hpp [search] Added SearchParams.m_categorialRequest for *pure* category results. 2022-06-13 14:55:32 +03:00
features_fetcher.cpp
features_fetcher.hpp [strings] Use string_view in StringUtf8Multilang and Tokenize. 2022-04-15 07:18:44 +03:00
framework.cpp [android] Custom title for om://crosshair API 2022-07-25 16:23:24 +02:00
framework.hpp [android] Custom title for om://crosshair API 2022-07-25 16:23:24 +02:00
framework_visualize.cpp [routing] Serialize cross-mww-weights as MapUint32ToValue<uint32_t>. 2022-05-12 19:55:01 +03:00
gps_track.cpp Unity builds 2022-01-13 18:24:11 +03:00
gps_track.hpp
gps_track_collection.cpp
gps_track_collection.hpp
gps_track_filter.cpp
gps_track_filter.hpp
gps_track_storage.cpp
gps_track_storage.hpp
gps_tracker.cpp
gps_tracker.hpp
isolines_manager.cpp Removed obsolete mwm traits functions. 2021-08-12 23:23:38 +02:00
isolines_manager.hpp Removed metrics and local notifications 2021-03-27 16:02:01 +01:00
mwm_tree.hpp
mwm_url.cpp [android] Custom title for om://crosshair API 2022-07-25 16:23:24 +02:00
mwm_url.hpp [android] Custom title for om://crosshair API 2022-07-25 16:23:24 +02:00
osm_opening_hours.hpp
place_page_info.cpp [strings] Use string_view in MetadataBase. 2022-04-15 07:18:44 +03:00
place_page_info.hpp [strings] Use string_view in FeatureType::GetName and similars. 2022-04-15 07:18:44 +03:00
position_provider.hpp
routing_manager.cpp [ios][android] Replacing altitude difference to ascent and descent (#3062) 2022-08-02 00:05:49 +02:00
routing_manager.hpp [ios][android] Replacing altitude difference to ascent and descent (#3062) 2022-08-02 00:05:49 +02:00
routing_mark.cpp Minor warning fixes. 2021-12-23 13:37:35 +01:00
routing_mark.hpp Several fixes per the PVS-Studio report. 2020-04-30 21:11:43 +03:00
search_api.cpp [search] Added SearchParams.m_categorialRequest for *pure* category results. 2022-06-13 14:55:32 +03:00
search_api.hpp Prettify Framework interface. 2021-12-19 18:21:19 +01:00
search_mark.cpp Comment out unused (but potentially usefull) functions. 2021-07-25 00:12:20 +02:00
search_mark.hpp Comment out unused (but potentially usefull) functions. 2021-07-25 00:12:20 +02:00
search_product_info.hpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
track.cpp [ios] Added new edit abilities for tracks and bookmarks 2021-07-28 11:38:01 +03:00
track.hpp [ios] Added new edit abilities for tracks and bookmarks 2021-07-28 11:38:01 +03:00
track_mark.cpp [bookmarks] Set min visible zoom for track markers. 2020-04-14 16:19:24 +03:00
track_mark.hpp [bookmarks] Set min visible zoom for track markers. 2020-04-14 16:19:24 +03:00
traffic_manager.cpp Removed metrics and local notifications 2021-03-27 16:02:01 +01:00
traffic_manager.hpp Removed metrics and local notifications 2021-03-27 16:02:01 +01:00
user_mark.cpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
user_mark.hpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
user_mark_id_storage.cpp [android][ios] Remove HTTP tracking headers 2021-06-30 16:26:40 +02:00
user_mark_id_storage.hpp
user_mark_layer.cpp
user_mark_layer.hpp
viewport_search_callback.cpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
viewport_search_callback.hpp [core][ios] Cleaned up Booking, guides, ugc, taxi 2021-04-22 08:11:07 +03:00
viewport_search_params.hpp [search] Added SearchParams.m_categorialRequest for *pure* category results. 2022-06-13 14:55:32 +03:00