Programming notes with current Java clients

Dear developers,

please take the following java programming notes into account (relevant for PTV xServer version 1.17 or higher):PTV_X-Server_Add-ons_80x80

  1. Extension of the class “com.ptvag.xserver.common.PlainPoint” (relevant for all PTV xServer): A third dimension (z-coordinate) is added with following characteristics: name = z; data type = java.lang.Double; getZ()- and setZ(Double)-methods are available. This parameter is optional.
  2. Extension of the class “com.ptvag.xserver.xmap.MapParams” (important for PTV xMap Server): A third attribute is added with following characteristics: name = language; data type = String; setLanguage method is included. If nothing is specified in the profile, ‘x-ptv-DFT’ will be automatically used. Description: The language in which geographical names are displayed on the map (especially the town names). Specified by a language code according to the BCP 47 standard track defined by the Internet Engineering Task Force (IETF). For most cases the ISO 639-1 code suffices.

Recommendation: Use the following instantiation of the classes.

PlainPoint plainPoint = new PlainPoint();
plainPoint.setZ(z); //optional
MapParams mapParams = new MapParams();
mapParams.setShowScale(true); // or false
mapParams.setUseMiles(true); // or false
mapParams.setLanguage(“x-ptv-DFT”); //optional

Any further questions? Don’t hesitate to contact our PTV xServer Support team.

Kind regards from Karlsruhe,

Dr. Michael Nutto


Product Manager PTV xServer