Commit graph

209 commits

Author SHA1 Message Date
Victor Shcherb
3c0ea3e60a Revert "Merge pull request #2609 from osmandapp/obf-merge"
This reverts commit cea1435200, reversing
changes made to 2755fe880a.
2016-05-30 22:09:20 +02:00
Roman Inflianskas
e0fc6d64c5 Add Amenity and PoiFilter comparators 2016-05-30 23:05:43 +03:00
Roman Inflianskas
1cdb28d2fc LATITUDE and LONGITUDE constants 2016-05-30 23:05:41 +03:00
Roman Inflianskas
9ac6faec25 LATITUDE and LONGITUDE constants 2016-05-30 23:05:14 +03:00
sonora
181bf8554b optimize code 2016-05-28 08:30:52 +02:00
Roman Inflianskas
998d4e50e4 Refactoring: add LATITUDE and LONGITUDE constants 2016-05-27 12:28:47 +03:00
Roman Inflianskas
f2d6191214 Refactoring 2016-05-27 11:53:56 +03:00
GaidamakUA
13b748b050 Fixed java 1.6 compatibility issue. 2016-05-25 15:26:46 +03:00
GaidamakUA
2dd280516e Added context menu item "Change marker position" 2016-05-25 13:59:46 +03:00
GaidamakUA
6b7c6eb3bf Formatting and applyed reccomended by Android studio changes. 2016-05-25 13:59:46 +03:00
GaidamakUA
ad03bd3390 Moving notes implemented. 2016-05-25 13:59:46 +03:00
Victor Shcherb
dd07571182 Fix #2495 2016-05-08 23:25:43 +02:00
Roman Inflianskas
f30318bf49 Fix #2436 2016-04-16 19:54:57 +03:00
Igor B. Poretsky
1772edd374 Better accessibility feedback in the route description screen.
Distance information is not duplicated by the accessibility
feedback. Added particular items for arrival points. Fully qualified
time format is used in accessibility mode since it is treated by
speech synthesizers more correctly.
2016-04-14 21:22:09 +03:00
Victor Shcherb
7c8441c9a4 Merge commit 2016-04-09 14:17:20 +02:00
Victor Shcherb
ac9d72327b Fix some tests with uturns 2016-04-09 14:11:09 +02:00
Alexey Kulish
ace2428975 Fix opening hours parser test 2016-04-07 12:38:46 +03:00
Victor Shcherb
9f4ca0a9b0 Public holiday #2429 2016-04-05 16:00:23 +03:00
Andrew Davie
63ff22b6ab "Trivial" area bounds for segments for super-quick culling during draw.
Reworked all the renderers to be much more object oriented.
Got the sample arrow and conveyor renderers working
Tracked down a few bugs - particularly one still there - TrkSegment with 0 points!
This in my opinion should never happen - it's coming in from "outside" to my code.
2016-03-30 01:47:04 +11:00
GaidamakUA
27c3f115b3 Support for username with any characters after location. 2016-03-17 10:11:56 +01:00
Victor Shcherb
43c60dd179 Revert changes 2016-03-17 10:09:32 +01:00
GaidamakUA
d159648df5 Support for username with any characters after location. 2016-03-17 10:23:35 +02:00
GaidamakUA
38adf0b04a Fixes #2255 2016-03-10 19:31:12 +02:00
Victor Shcherb
af5253b8b0 Add integer suffix 2016-02-21 19:21:18 +01:00
GaidamakUA
1b73c25a59 Added local day names to OpeningHoursParser. 2016-02-12 17:51:40 +02:00
GaidamakUA
134c6de70b Fixed formatting for file. 2016-02-12 17:51:40 +02:00
Victor Shcherb
6569d7e83e Fix opening hours' 2016-02-07 19:06:10 +01:00
Alexey Kulish
ca57ae085d Added direction icon to Waypoint row. Fixed start/dest/intermediate list icons. 2016-01-23 12:27:53 +03:00
GaidamakUA
f5127caf51 New test for instagramm geo intent. And made it work. 2016-01-16 11:32:40 +02:00
GaidamakUA
a96234d32d Made open hours parser aware of PH and SH tags. Fixes #2116 2016-01-05 13:18:03 +02:00
GaidamakUA
d74ed25045 Add time span is working 2015-12-30 18:29:29 +02:00
GaidamakUA
072e23cd2d Deletion of time spans is working 2015-12-29 17:11:55 +02:00
GaidamakUA
233cec7962 Added normal editing of timespans other than 1st one. 2015-12-03 13:36:30 +02:00
GaidamakUA
18e8f5a6df Added new test for multiple timespans. 2015-12-02 17:48:33 +02:00
Victor Shcherb
ca66522b37 Add support for interpolation interval 2015-11-30 00:41:35 +01:00
GaidamakUA
e18c365c62 Parsing for WhatsApp fixed #1550 2015-11-16 14:11:20 +02:00
GaidamakUA
3b2352f18b Rate us bottom sheet 2015-11-16 13:47:34 +02:00
Victor Shcherb
a705891a81 Add failing test 2015-11-16 00:34:06 +01:00
GaidamakUA
b28a8b5c60 Fix #1550 WhatsApp location 2015-11-13 10:06:18 +02:00
GaidamakUA
dd80992edd Fix #1550 What's app location 2015-11-10 20:00:34 +02:00
Victor Shcherb
7530aa7b60 Add progress bar to copy 2015-10-21 23:58:22 +02:00
Victor Shcherb
3b79bea784 Fix opening hours 2015-10-21 22:49:36 +02:00
Victor Shcherb
af747fbbec Fix https://github.com/osmandapp/Osmand/issues/1770 #1770 2015-10-05 22:21:27 +03:00
Victor Shcherb
cab1fd815c Fix https://github.com/osmandapp/Osmand/issues/1770 #1770 2015-10-05 19:16:34 +03:00
GaidamakUA
6d75254f7c Downloads progress implementation in progress. 2015-10-01 18:10:46 +03:00
GaidamakUA
5305f02d4e Name and poi_types_tag removed from advanced view. opening_ours editor reimplemented. 2015-10-01 10:54:06 +03:00
GaidamakUA
1ac36287b8 EditPoiFragment. SecondTabBroken. 2015-09-30 19:27:37 +03:00
Alexey Kulish
99c1784a12 Context menu - fix crash while editing favorites 2015-09-27 21:53:26 +03:00
Victor Shcherb
6c542cca3a Prioritize opening hours better for current rule 2015-09-10 00:30:31 +02:00
GaidamakUA
885836d923 Opening hours editing is working 2015-08-27 17:03:32 +03:00
GaidamakUA
6c4b3e9109 Autocomplete from start 2015-08-26 10:59:39 +03:00
GaidamakUA
e60c133519 Opening hours dialog is implemented, EditPoiFragment scroll bug fix, icons fix 2015-08-25 17:48:08 +03:00
GaidamakUA
7d3b58da8e Opening hours dialog work in progress 2015-08-25 15:21:53 +03:00
GaidamakUA
1cb5afcb9a GeoPointParserUtil indentation fix 2015-08-21 18:33:25 +03:00
GaidamakUA
61800f7419 Time dialog in progress 2015-08-21 13:13:51 +03:00
Victor Shcherb
cff6122f9b Add hazard warning #1446 2015-08-04 10:52:57 +02:00
Victor Shcherb
6231f0c1ed Update roads only maps 2015-08-03 09:44:40 +02:00
Victor Shcherb
279bc00f0a Update files 2015-08-01 20:17:51 +02:00
Victor Shcherb
55dc79e118 Update order to initialize 2015-07-28 22:22:28 +02:00
Victor Shcherb
3eb12eefca Add method 2015-07-28 01:44:05 +02:00
GaidamakUA
326faa8e2b Removed hardcoded values 2015-07-27 23:20:47 +03:00
GaidamakUA
81228dba45 Fixing issue #1486. Incorrect parsing of double parentheses. Now double parentheses are simply removed. 2015-07-27 23:20:30 +03:00
Victor Shcherb
7c9352f903 Update bbox 2015-07-17 09:15:17 +02:00
Victor Shcherb
7783f9abec Fix map gen 2015-07-14 10:50:16 +02:00
Victor Shcherb
0c158551f1 Fix poi out of its boundaries 2015-07-07 21:28:17 +03:00
Victor Shcherb
28640f0eb5 Fix internalization for address 2015-06-30 13:16:01 +02:00
Victor Shcherb
c6004c4dbd Update my location btn 2015-06-30 10:31:26 +02:00
Victor Shcherb
c6b7082f6e Fix gpx color (display from track) 2015-06-12 01:28:41 +02:00
Victor Shcherb
afef7a56f1 Update favs 2015-06-08 22:54:12 +02:00
Victor Shcherb
ddae62466c Update favorites sorting algorithm / fix saving favorites 2015-06-08 22:16:43 +02:00
Victor Shcherb
e3ef7c1329 Fix gmaps geo 2015-06-06 17:19:07 +02:00
Victor Shcherb
5cd40baff3 Fix tests 2015-05-10 01:25:23 +02:00
Robin Schneider
c9f64ad619
Added test for "Mo-Th 09:00-03:00, Fr-Sa 09:00-04:00; Su off". Not evaluated correctly. Related to #1154. 2015-05-10 00:50:44 +02:00
Victor Shcherb
12ebbd0965 Update only open parser 2015-04-10 01:34:46 +02:00
Victor Shcherb
ca7ddae8ad Update open hours ui 2015-04-07 00:47:02 +02:00
Victor Shcherb
3b0f6f49af Update open hours ui 2015-04-07 00:34:11 +02:00
Hans-Christoph Steiner
87896f852b fix Google Maps URL parsing for all known URLS
This fixes the FIXME URLs, and adds a new URL with the query name in the
fragment.
2015-03-31 22:43:17 -04:00
Hans-Christoph Steiner
dac0cf725b support parsing all Google Maps URLs
This adds support for hosts like:
* www.google.com.tr
* www.google.co.uk

and many more...
2015-03-31 22:38:46 -04:00
Victor Shcherb
15450a8d87 Update waypoints 2015-03-26 22:16:04 +01:00
Hans-Christoph Steiner
859595267e add more kinds of Google URLs for testing
This includes some valid Google Maps links that cause problems with the new
`parseGoogleMapsPath()` method.
2015-02-03 00:29:43 +01:00
Hans-Christoph Steiner
34ecdafc5d GeoParsedPoint normalize query string format as plain, not URL-encoded
There were parts of this code that were sticking in a URL-encoded query
string into GeoParsedPoint, and other parts that were putting in a regular
non-URL-encoded String.  This meant that URLs with an & in the query string
encoded as %26 were not being properly parsed, since & is used to split up
the query string.  That also makes it impossible to output a properly
encoded URI from getGeoUriString().
2015-02-03 00:28:45 +01:00
Hans-Christoph Steiner
124d48cd6e add various unparsable short links as tests 2015-02-02 22:53:05 +01:00
Hans-Christoph Steiner
7cb58ec540 also parse maps.apple.com links, the query string includes lat/long/zoom/etc
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html
2015-02-02 22:53:05 +01:00
Hans-Christoph Steiner
1c4ad908da handle all Google country-specific domains, i.e. google.at, google.ru, etc.
https://en.wikipedia.org/wiki/List_of_Google_domains
2015-02-02 22:53:05 +01:00
Hans-Christoph Steiner
59c34b350a improve Yandex link parsing
* also handle maps.yandex.com URLs
* properly handle unparsable short links (i.e. don't crash or return results)
* include text= as Label
2015-02-02 22:53:05 +01:00
Hans-Christoph Steiner
897d6ba387 only output coords from Yandex URL if the full ll= string matches
This just makes sure that there is a full lat/lon match before outputing.
2015-02-02 22:53:04 +01:00
Hans-Christoph Steiner
90c1b8a8e0 only parse query string if it is used
Not all location URLs have useful information in the query string, so only
parse it if it is used in the section for a given hostname.

Also, rename queryMap to params for consistency.
2015-02-02 22:53:04 +01:00
Hans-Christoph Steiner
4e5fa43f98 claim location URLs from QQ Map by Tencent
closes https://dev.guardianproject.info/issues/4394
2015-02-02 22:53:04 +01:00
Hans-Christoph Steiner
9b77f6fa90 claim location URLs from Nokia HERE
closes https://dev.guardianproject.info/issues/4399
2015-02-02 22:53:04 +01:00
Hans-Christoph Steiner
d34d341d65 keep Uri "path" intact during parsing for consistant regexes
By not modifying "path" from what Uri.getPath() returns, it keeps the
pattern matching consistent since the contents of "path" will always be the
same as Uri.getPath(), and what is visible in the URI itself.
2015-02-02 22:53:04 +01:00
Hans-Christoph Steiner
2771da35de GeoPointParserUtil.getQueryParameters() to return Map of all parameters
This parses out all of the parameters in the query string for both http:
and geo: URIs.  This will only work on URIs with valid syntax, so it will
not work on URIs that do odd things like have a query string in the
fragment, like this one:

http://www.amap.com/#!poi!!q=38.174596,114.995033|2|%E5%AE%BE%E9%A6%86&radius=1000
2015-02-02 22:53:04 +01:00
Hans-Christoph Steiner
3d106d00b7 support parsing amap.com URLs
amap.com aka autonavi is a popular mapping service in China.
2015-02-02 22:53:04 +01:00
Alexey Pelykh
75a0c03e40 Fix build 2015-02-02 18:15:28 +02:00
Hans-Christoph Steiner
8155e749bb use Locale.ENGLISH to format numbers for geo: links
Some locales do not use 0-9 as the digits, such as Arabic and sometimes
Chinese.  Using those numerals in a geo: URI probably would not work.
2015-02-02 16:08:30 +01:00
Hans-Christoph Steiner
3db16680b4 GeoParsedPoint.getGeoUriString() to output the data as a geo: URI
Output the data in the GeoParsedPoint as a geo: URI (http://geouri.org)
2015-02-02 16:08:30 +01:00
Hans-Christoph Steiner
58485d8ba9 rename GeoParsedPoint's named point var to "Label" after Google standard
This outlines the named point format of a geo: URI:
https://developer.android.com/guide/components/intents-common.html#Maps
2015-02-02 16:08:30 +01:00
Hans-Christoph Steiner
6f2e0029a5 remove debug message from GeoPointParserUtil.areCloseEnough() 2015-02-02 16:08:30 +01:00
Victor Shcherb
567de5806a Update geo parse utility 2015-02-02 09:25:15 +01:00
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
50eed92015 parse lat/lon/zoom from OpenStreetMap shortlinks
This is a nice format of shortlink since it uses a public, offline algorithm
to generate them.  So Osmand can get what it needs from the shortlink
without going online.

https://wiki.openstreetmap.org/wiki/Shortlink
2015-01-21 11:25:51 +01:00