In many times in our development time we need to compare between two JSON Object are equal or not. For simple JSON Object which has contain with 3-4 key-value pair is easy for us to compare it by us, but for complex JSON it is very difficult two compare between them. So in this article I show you how you easily compare between two JSON. For that case you need to visit http://www.jsondiff.com/ As example, Using this site we compare between two json object Sample JSON 1 { "name" : "John Doe" , "roll_no" : "25" , "is_present" : true } Sample JSON 2 { "name" : "John Doe" , "roll_no" : "25" , "is_present" : false , "div" : "A" } So first we open the site and in left and right side input box just copy paste the sample JSON 1 and sample JSON 2 and click on the "Compare" button which placed in centre. Now you can easily see the difference as per ...
How to fetch Latitude, Longitude from address and vice-versa(address from Latitude, Longitude) using Google Geo coder SDK in android| Kotlin
In this Android development related article, you will get a simple solution that, how to get address using Latitude, Longitude and vice-versa. i.e latitude, longitude from an address text. It is very easy and simple. Read full article and carefully follow all the steps. Here we use google Geocoder SDK. Okay, first we create an android project in kotlin and create an Activity say MainActivity.kt. Use the below code- Function get Latitude, Longitude from Address- fun getLatLngFromAddress (context: Context, mAddress: String): String { val coder = Geocoder(context) lateinit var address: List<Address> try { address = coder.getFromLocationName(mAddress, 5 ) if (address == null ) { return "Fail to find Lat,Lng" } val location = address[ 0 ] return " Latitude: ${location.latitude}\n Longitude: ${location.longitude}" } catch (e: Exception...