From 5e2e8a4b573dabc2693ca86e520ac0a6f501c679 Mon Sep 17 00:00:00 2001 From: Wei Lun Date: Fri, 16 Feb 2018 14:36:15 +0800 Subject: [PATCH 1/2] added maps ultilities dependencies --- app/app.iml | 3 ++- app/build.gradle | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/app.iml b/app/app.iml index ff83af7..07567e1 100644 --- a/app/app.iml +++ b/app/app.iml @@ -194,7 +194,6 @@ - @@ -218,6 +217,7 @@ + @@ -232,6 +232,7 @@ + diff --git a/app/build.gradle b/app/build.gradle index 8248ff7..c0a5ebc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -49,7 +49,7 @@ dependencies { androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' implementation "com.android.support:recyclerview-v7:26.1.0" implementation "com.android.support:support-v4:26.1.0" - compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" + compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" compile 'com.android.volley:volley:1.0.0' @@ -59,6 +59,9 @@ dependencies { //location compile 'com.google.android.gms:play-services-location:11.8.0' + //google maps ultilities + compile 'com.google.maps.android:android-maps-utils:0.5+' + //braintree compile 'com.braintreepayments.api:braintree:2.+' compile 'com.braintreepayments.api:drop-in:3.+' From e138ea399f5fb020c1ef5c4196dede67414916ff Mon Sep 17 00:00:00 2001 From: Wei Lun Date: Fri, 16 Feb 2018 14:38:54 +0800 Subject: [PATCH 2/2] added todo --- .../lun/pocket_health_advisor/NearbyHospitalActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/example/lun/pocket_health_advisor/NearbyHospitalActivity.kt b/app/src/main/java/com/example/lun/pocket_health_advisor/NearbyHospitalActivity.kt index b804f11..ecfc6bc 100644 --- a/app/src/main/java/com/example/lun/pocket_health_advisor/NearbyHospitalActivity.kt +++ b/app/src/main/java/com/example/lun/pocket_health_advisor/NearbyHospitalActivity.kt @@ -22,6 +22,10 @@ import java.net.URL class NearbyHospitalActivity : AppCompatActivity() { + //TODO: get lat and long for each place + //TODO: encode with PolyUlti + //TODO: Send all distination in a single HTTP request + companion object { const val googleApiKey = "AIzaSyAg3W8vlilMkGYNSpdlceSxCzZtGUlKrx8" const val searchPlaceURL = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?"