title: display variable name instead of value in foreach loop
body: <p>Hiii am using maps in my app. i have to add multiple marker in my map. i have placed all the markers in ArrayList . and now using foreach loop am placing markers. Till here every thing is working fine. but i want to place title to that marker. and that title should be variable name which i added in array list.
  This is my arraylist </p>
  
  <pre><code> placeslist  = ArrayList&lt;LatLng&gt;()
              pietrasanta = getLocationFromAddress(this, "pietrasanta the italian resturant")
              Ikea_alexandra = getLocationFromAddress(this, "Ikea alexandra resturant,317")
              candlenut_resturant = getLocationFromAddress(this, "candlenut resturant,17A ")
  
              placeslist.add(pietrasanta )
              placeslist.add(Ikea_alexandra)
              placeslist.add(candlenut_resturant)
  </code></pre>
  
  <p>getting lnglat from this getLocationFromAddress method </p>
  
  <pre><code> fun getLocationFromAddress(context: Context, strAddress: String): LatLng {
          val coder: Geocoder = Geocoder(context)
          val address1: List&lt;Address&gt;
          lateinit var p1: LatLng
  
  
  
          try {
              address1 = coder.getFromLocationName(strAddress, 5)
              if (address1 == null) {
  
              }
              val location: Address = address1.get(0)
              location.latitude
              location.latitude
              p1 = LatLng(location.latitude, location.longitude)
  
  
          } catch (e: Exception) {
              e.printStackTrace()
          }
  
          return p1
      }
  </code></pre>
  
  <p>And now with the help of foreach loop am adding markers in onMapReady()</p>
  
  <pre><code>  placeslist.forEach(){
              mMap.addMarker(MarkerOptions().position(it).title())    
          }
  </code></pre>
  
  <p>till here everything is fine . the problem is raising when am tring to add .title()
  in the place of title i want to display variables lable in arraylist instead of values that is  pietrasanta, Ikea_alexandra, candlenut_resturant with their respective markers . can anyone please help me how to add variable names as string instead of its value.</p>
  
  <p>i tried with this    <code>mMap.addMarker(MarkerOptions().position(it).title(it.toString()))</code><br>
  but instead of name latitude and longitude values are displaying as title.</p>