User needs analysis Pengembangan Sistem Pakar Spasial Berbasis Mobile Untuk Pemilihan Lokasi Peternakan Broiler Tipe Kandang Tertutup

24 of the point is more than or equal to 1 and less than or equal to 7, and the y coordinate is more than or equal 1 and less than or equal 8. In Figure 24, user put a point in coordinate of 6, 7. By using certain algorithm, since the x coordinate is more than 1 but less than 7 and coordinate of y is more than 1 but less than 8, the system will read that the point is located on polygon a, and then read the attributes of polygon a to be served as information. Also if user put a point on q 11, 4, the system will read that point q is located on polygon b by the same algorithm, and if user put a point on r 13, 5, the system will read that point r is not located on any polygon a, b, or c. The system was implemented by using several web programming language, such as html, css, php, javascript, and jQuery. Copy of code below is example of query code written in php. This code will return the result of location suitability based on coordinate input which is represented by longitude lng variable and latitude lat variable. Some PostGIS function are used in this code, which are ST_Within, ST_SetSRID, and ST_MakePoint. This sample code used the same principle as shown by Figure 24. cek kesesuaian cek_suai=SELECT b.nama_desa, b.luas, a.kesesuaian FROM kesesuaian AS a, desa AS b WHEREST_WithinST_SetSRIDST_MakePointlng,lat,4326 , a.geom AND a.id_desa=b.id_desa; kueri= cek_suai; output_suai = run_kueripg_conn_string, kueri; suai=output_suai; kesesuaian = suai[2]; The developed system is a web-based mobile application that can be installed on an Android device. The installer is in the form of .apk file, can be downloaded from http:arif.mit.biotrop.org or http:broilerfarmloc.web.id. After the application is installed, there will be an icon in the application list. Figure 25 shows the application icon in the application list shown by red circle. a b c Figure 25. Application after installed on mobile device. Application icon on drawer a, splash screen b, and homescreen c