Code example for LatLng

0
        } 
        return false; 
    } 
 
    private LatLng addStationMarker(Station station, int iconId) {
        LatLng pos = new LatLng(Double.valueOf(station.getLatitude()), Double.valueOf(station.getLongitude()));
        mMap.addMarker(new MarkerOptions()
            .position(pos)
            .title(station.getStationName())
            .snippet(station.getCompanyName())
            .icon(BitmapDescriptorFactory.fromResource(iconId))
        ); 
        return pos;
    } 
}