The synergic utilization of data from different sources, either ground-based or spaceborne, can lead to effective monitoring of maritime activities. To this end, the integration of synthetic aperture radar (SAR) images with data reported by the automatic identification system (AIS) is of high interest. Accurate matching of ships detected in SAR images with AIS data requires compensation of the azimuth offset, which depends on the ship's velocity. The existing procedures interpolate the route information gathered by AIS to estimate the ship's velocity at the epoch of the SAR data, to remove the offset. Matching accuracy is limited by interpolation errors and AIS route information unavailability or uncertainties. This paper proposes the use of SAR-based ship velocity estimations to improve the integration of AIS and SAR data. A case study has been analyzed, in which the method has been tested on TerraSAR-X images collected over the Gulf of Naples, Italy. Presented results show that the matching is improved with respect to standard procedures. The proposed method limits the distance between the AIS report and the SAR-based detection to less than 150 m, which is in line with maritime surveillance needs.