Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LatLng name1 = new LatLng (6.3490548, -75.5580200);
- LatLng name2 = new LatLng (6.33, -75.56);... // to create this automatically, only changing name
- StringRequest strReq = new StringRequest(Request.Method.POST, "http://www.elgeos.com/server/php_tracker_server/markers.php?r_ruta=" + rutaGE + "&jornada=" + jornadaGE, new Response.Listener<String>() {
- @Override
- public void onResponse(String response) {
- Log.e("Response: ", response);
- try {
- JSONObject jObj = new JSONObject(response);
- String getObject = jObj.getString("saagMRK");
- JSONArray jsonArray = new JSONArray(getObject);
- for (int i = 0; i < jsonArray.length(); i++) {
- JSONObject jsonObject = jsonArray.getJSONObject(i);
- LatLng name1 = new LatLng(parseDouble(jsonObject.getString(LAT)), parseDouble(jsonObject.getString(LNG)));// Multiply this line only changed the name1 to name2 to name3 automatically
- ...
Add Comment
Please, Sign In to add comment