Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
cedarmaps-sdk-android-public
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Cedar Studios
cedarmaps-sdk-android-public
Commits
0e01cfe0
Commit
0e01cfe0
authored
Sep 02, 2018
by
Deployer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes an issue in Distance API where wrong pair of latitudes and longitudes were submitted.
parent
a5365b7e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
build.gradle
CedarMapsSDK/build.gradle
+3
-3
CedarMaps.java
...rc/main/java/com/cedarstudios/cedarmapssdk/CedarMaps.java
+4
-4
README.md
README.md
+1
-1
No files found.
CedarMapsSDK/build.gradle
View file @
0e01cfe0
...
...
@@ -3,16 +3,16 @@ apply plugin: 'signing'
apply
plugin:
'com.github.dcendents.android-maven'
group
=
"com.cedarmaps"
version
=
"3.1.
0
"
version
=
"3.1.
1
"
def
siteUrl
=
'http://cedarmaps.com'
def
gitUrl
=
'http://cedarmaps.com/git'
android
{
compileSdkVersion
2
7
compileSdkVersion
2
8
defaultConfig
{
minSdkVersion
15
//IceCream Sandwich 4.0.3
targetSdkVersion
2
7
//Oreo
targetSdkVersion
2
8
//Pie
}
}
...
...
CedarMapsSDK/src/main/java/com/cedarstudios/cedarmapssdk/CedarMaps.java
View file @
0e01cfe0
...
...
@@ -389,17 +389,17 @@ public class CedarMaps {
*/
public
void
distance
(
Pair
<
LatLng
,
LatLng
>[]
coordinatePairs
,
final
GeoRoutingResultListener
completionHandler
)
{
String
pairs
=
""
;
String
Builder
pairs
=
new
StringBuilder
()
;
String
delimiter
=
""
;
for
(
Pair
<
LatLng
,
LatLng
>
locationPair
:
coordinatePairs
)
{
pairs
+=
delimiter
+
String
.
format
(
Locale
.
ENGLISH
,
"%1$s,%2$s;%3$s,%4$s"
,
locationPair
.
first
.
getLatitude
(),
locationPair
.
first
.
getLongitude
(),
locationPair
.
second
.
getLatitude
(),
locationPair
.
second
.
getL
atitude
(
));
pairs
.
append
(
delimiter
).
append
(
String
.
format
(
Locale
.
ENGLISH
,
"%1$s,%2$s;%3$s,%4$s"
,
locationPair
.
first
.
getLatitude
(),
locationPair
.
first
.
getLongitude
(),
locationPair
.
second
.
getLatitude
(),
locationPair
.
second
.
getL
ongitude
()
));
delimiter
=
"/"
;
}
String
url
=
String
.
format
(
Locale
.
ENGLISH
,
AuthenticationManager
.
getInstance
().
getAPIBaseURL
()
+
"distance/%1$s/%2$s"
,
mDirectionID
,
pairs
);
mDirectionID
,
pairs
.
toString
()
);
getResponseBodyFromURL
(
url
,
new
NetworkResponseBodyCompletionHandler
()
{
@Override
...
...
README.md
View file @
0e01cfe0
...
...
@@ -38,7 +38,7 @@ Then, add this to the `build.gradle` of your **app** module:
```
groovy
dependencies
{
implementation
'com.cedarmaps:CedarMapsSDK:3.1.
0
'
implementation
'com.cedarmaps:CedarMapsSDK:3.1.
1
'
}
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment