The invention relates to a method for transmitting position data to a receiver, wherein a target whose position data is determined, as well as a receiver of position data are selected. The method comprises the steps of generating a request to determine position data, determining the position of the target, and transmitting the position data to the receiver. Information about the receiver is transmitted in connection with the request to determine position data. The message format available for the message to be transmitted to the receiver is determined, and a message complying with the determined message format is generated, to which the position data is added or included. The message including the position data is transmitted to the receiver. The invention also relates to a system, a device, and a computer program product in which the method is applied.