added getLatLngs-function