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.+' 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?"