Skip to main content

Appendix: Address Data Types

In methods whose payload contains an address object, the address format can be selected during integration, according to the system used by the courier service. Types of address data are currently supported:

  • Coordinate-based (coord); location is transmitted using coordinates, i.e. latitude and longitude take priority;
  • Custom (custom); location is transmitted using parts of the address and the full free-text address, supplemented with coordinates.

Detail tables of the parameters for the various address object types are presented below:

Coordinate-Based​

ParameterData typeRequiredDescriptionComment
addressTypeconst: coord1A coordinate-based address objectFilled in as: "coord"
fullAddressstring1Full address in string formatExample: "214014, Smolensk, Mira St., 7"
cityFiasstring (36) UUID0FIAS code of the city (Russia only)Example: "2763c110-cb8b-416a-9dac-ad28a55b4402"
latitudedecimal1Latitude of the object in decimal degrees128-bit, fixed precision
longitudedecimal1Longitude of the object in decimal degrees128-bit, fixed precision
flatstring0Apartment or unit numberOptional if the address is passed for a PP
addressCommentstring (250)0Comment on the addressMay match the PP comment

Custom​

ParameterData typeRequiredDescriptionComment
addressTypeconst: custom1A custom address objectFilled in as: "custom"
fullAddressstring1Full address in string formatExample: "214014, Smolensk, Mira St., 7"
countryCodeIsostring (2)0Country code for the address objectPer the "ISO 3166-1, alpha-2" standard
regionCodeIsostring (6)0Region code for the address objectPer the "ISO 3166-2" standard
regionNamestring (100)1Region nameExample: "Sverdlovsk"
cityTypestring (100)1City typeExample: "city"
cityNamestring (100)1City nameExample: "Yekaterinburg"
localityTypestring (30)0Type of destination localityIf this is a locality within another city
localityNamestring (100)0Name of the destination localityExample: "Kudrovo," "Zheleznodorozhny"
postalCodestring (6)0Postal codeExample: 620007
streetTypestring (30)0Street typeExample: "Lane," "Street," "Passage"
streetNamestring (100)0Street nameExample: "Bobruyskaya," "John Lennon"
houseNumberstring (6)0House numberExample: "42," "9," "3/4"
flatstring0Apartment or unit numberOptional if the address is passed for a PP
latitudedecimal0Latitude of the object in decimal degrees128-bit, fixed precision
longitudedecimal0Longitude of the object in decimal degrees128-bit, fixed precision
nearestStationstring (100)0Nearest surface-transport stationFor example, "MGA," platform "65km," etc.
nearestSubwayStationstring (100)0Nearest metro stationOnly for localities with a metro system
addressCommentstring (250)0Comment on the addressMay match the PP comment