title: How to use OnMarkerClickListener to get location of that marker?
body: <p>I have a map with 3 options. A search function, a nearby locations function, and a click on the map to set marker option. I want to save these locations in my Parse backend, but the only one I was able to figure out how to do is the set marker option. </p>
  
  <p>When I do a nearby search and get a bunch of results I want to be able to click on one of the markers (see the title and location) and then click on the save button to save to my backend. Here's what I have:</p>
  
  <pre><code>        @Override
      protected void onPostExecute(List&lt;HashMap&lt;String,String&gt;&gt; list){
  
          // Clears all the existing markers
          mGoogleMap.clear();
  
          for(int i=0;i&lt;list.size();i++){
  
              // Creating a marker
              markerOptions = new MarkerOptions();
  
              // Getting a place from the places list
              HashMap&lt;String, String&gt; hmPlace = list.get(i);
  
              // Getting latitude of the place
              double lat = Double.parseDouble(hmPlace.get("lat"));
  
              // Getting longitude of the place
              double lng = Double.parseDouble(hmPlace.get("lng"));
  
              // Getting name
              final String name = hmPlace.get("place_name");
  
              // Getting vicinity
              final String vicinity = hmPlace.get("vicinity");
  
              latLng = new LatLng(lat, lng);
  
              // Setting the position for the marker
              markerOptions.position(latLng);
  
              // Setting the title for the marker.
              //This will be displayed on taping the marker
              markerOptions.title(name + " : " + vicinity);
  
  
              // Placing a marker on the touched position
              mGoogleMap.addMarker(markerOptions);
  
  
          }
  
      }    
  </code></pre>
  
  <p>I have tried to add setOnMarkerClickListener, but it ends up not showing me anything (right now I at least get the title and location).</p>
  
  <p>I know how to save the location to my backend but I'm not sure how to get the location of the clicked marker.</p>