Halaman Detail Deskripsi Halaman Detail Map

no_tlp.setTextno_tlp_d; }catch Exception e { TODO: handle exception e.printStackTrace; }

A. Halaman Detail Deskripsi

Halaman Detail Deskripsi merupakan halaman yang menampilkan informasi singkat mengenai deskripsi hotel tersebut. Gambar 4.5 merupakan tampilan dari halaman detail deskripsi aplikasi mobile. Gambar 4.5 Tampilan Halaman Detail Deskripsi

B. Halaman Detail Map

Halaman Detail Map merupakan halaman yang menampilkan detail lokasi hotel dengan menggunakan Google Map API. Halaman ini menampilkan map dengan informasi titik lokasi user, titik lokasi hotel, jarak dan rute nagivasi dari STIKOM SURABAYA lokasi user menuju hotel tersebut. Pada halaman ini juga menyediakan mode tampilan map antara lain normal, satellite, terrain dan hybrid. Gambar 4.6 merupakan tampilan dari halaman detail map aplikasi mobile. Gambar 4.6 Tampilan Halaman Detail Map Berikut potongan source code untuk menampilkan jarak dan rute navigasi. protected ListListHashMapString, String doInBackgroundString... jsonData { JSONObject jObject; ListListHashMapString, String routes = null; try{ jObject = new JSONObjectjsonData[0]; DirectionsJSONParser parser = new DirectionsJSONParser; routes = parser.parsejObject; }catchException e{ e.printStackTrace; } return routes; } Override STIKOM SURABAYA protected void onPostExecuteListListHashMapString, String result { ArrayListLatLng points = null; PolylineOptions lineOptions = null; MarkerOptions markerOptions = new MarkerOptions; String distance = ; String duration = ; forint i=0;iresult.size;i++{ points = new ArrayListLatLng; lineOptions = new PolylineOptions; ListHashMapString, String path = result.geti; forint j=0;jpath.size;j++{ HashMapString,String point = path.getj; ifj==0{ Get distance from the list distance = Stringpoint.getdistance; continue; }else ifj==1{ Get duration from the list duration = Stringpoint.getduration; continue; } double lat = Double.parseDoublepoint.getlat; double lng = Double.parseDoublepoint.getlng; LatLng position = new LatLnglat, lng; points.addposition; } lineOptions.addAllpoints; lineOptions.width2; lineOptions.colorColor.RED; } koordinat.setTextJarak : + distance; googleMap.addPolylinelineOptions; }

C. Halaman Detail Fasilitas