Commit graph

25 commits

Author SHA1 Message Date
Hans-Christoph Steiner
9bb03894a5 generate OpenStreetMap shortlinks using current char set (~ instead of @)
OpenStreetMap has changed the shortlink charset to use ~ instead of @ to be
support services like Twitter where @ has meaning.  OpenStreetMap still will
parse the old format, but only generates new shortlinks using "~".  This
commit changes OsmAnd to have the same behavior.

References:
https://wiki.openstreetmap.org/wiki/Shortlink#Code_for_encoding_.26_decoding
e84b2bd22f/app/assets/javascripts/application.js (L188)

---------------- OsmAnd-java/src/net/osmand/util/MapUtils.java ----------------
2015-01-21 11:25:51 +01:00
Hans-Christoph Steiner
2537d92a6a update MapUtils.decodeShortLinkString() to also parse zoom
This method is used to parse the custom OpenStreetMap shortlink algorithm
that encodes lat, lon, and zoom.  The previous version,
MapUtils.decodeShortLocString(), only parsed lat, lon from the shortlink.
2015-01-21 11:25:51 +01:00
Hans-Christoph Steiner
01bb7d091f split geo: URL creation to MapUtils.buildGeoUrl(lat, lon, z)
This follow the pattern set by MapUtils.buildShortOsmUrl().
2015-01-21 11:00:46 +01:00
Hans-Christoph Steiner
c54d8d47e8 use HTTPS URL for sharing location
In order to maintain privacy when sharing location, this changes the shared
location link to use HTTPS, thereby hiding the location info from anyone
who might be snooping on the WiFi, ISP, internet, etc.

Unfortunately, http://osm.org does not yet work with HTTPS, but the
standard OSM URLs are short enough to fit into a text message. They are
planning on supporting https://osm.org in the future:
https://github.com/openstreetmap/operations/issues/2
2015-01-21 11:00:46 +01:00
Victor Shcherb
b6273d00c1 Fix zoom scale for high density phones (glitch 200-300%) 2014-10-01 00:27:01 +02:00
Victor Shcherb
82120c920e Add more info about error heartbeat 2014-09-27 12:44:37 +03:00
Victor Shcherb
8dc635eae1 Update map utils 2014-09-26 10:42:47 +02:00
Victor Shcherb
441b547a21 Add search poi along the path 2014-08-05 11:09:15 +02:00
Victor Shcherb
c1e1c10f39 Try to fix performance 2014-06-27 01:25:38 +02:00
Victor Shcherb
d9a7c973b3 Try to fix basemap generation 2014-06-13 11:32:06 +02:00
vshcherb
07db561e06 Small changes 2014-02-12 01:01:28 +01:00
vshcherb
da25b2869b Add new routing config 2014-02-05 21:10:04 +01:00
vshcherb
65072007cd Fix small issues 2013-12-30 00:45:29 +01:00
vshcherb
847c8e8d44 Fix simulation in tunnel (too quick now) 2013-12-30 00:45:29 +01:00
vshcherb
4c67ef8209 Fix critical issue of 208% 2013-11-02 18:14:43 +01:00
vshcherb
6c7cd3d3c2 Simulate position in tunnels 2013-10-29 21:13:57 +01:00
vshcherb
9ffedce020 Update location provider 2013-10-29 01:27:01 +01:00
vshcherb
b50fd54528 Small refactoring route details 2013-10-26 14:41:07 +02:00
vshcherb
2d6ce8c5ca Add 2 fingers rotation 2013-10-06 22:47:20 +03:00
vshcherb
38328dbc26 Fix vector rendering 2013-10-06 22:47:19 +03:00
Nelson A. de Oliveira
8d3c8b6e9e Fix long literals ending with l
These literals may be confusing, as lowercase 'l' looks very similar to
'1'
2013-08-03 10:48:11 -03:00
Nelson A. de Oliveira
bf05917be5 Remove redundant local variables 2013-07-31 15:22:39 -03:00
Nelson A. de Oliveira
61699455e5 Replace StringBuffer with String
These may be replaced with java.lang.String expressions which results in
simpler and possibly more efficient code
2013-07-31 15:09:37 -03:00
sonora
addc32965a simplify haversine formula 2013-06-18 11:00:26 +02:00
Victor Shcherb
7bc162a878 Move OsmAnd java core project back to android repository for maintainance reasons 2013-04-18 23:35:20 +02:00