title: How do I retrieve custom marker coordinates in HERE Maps API for Javascript?
body: <p>How do I retrieve custom marker coordinates in HERE Maps API for Javascript?</p>
  
  <p>This is how I add a custom marker:</p>
  
  <pre><code>var marker = new nokia.maps.map.StandardMarker([52.51, 13.4], {
     text: "Hi!", // Small label
     draggable: true // Make the marker draggable
  });
  
  map.objects.add(marker);
  </code></pre>
  
  <p>The problem: I need to get new coordinates when a user drags this marker to another position and clicks 'ok' (so no listeners are needed).</p>
  
  <p>Neither <code>var 123 = marker(coordinate); alert(123);</code>nor <code>var 123 = marker.coordinate; alert(123);</code> do the trick. The API seems to be silent about that issue.</p>