Navigation

 ·   Wiki Home
 ·   Wiki Help
 ·   Categories
 ·   Title List
 ·   Uncategorized Pages
 ·   Random Page
 ·   Recent Changes
 ·   RSS
 ·   Atom
 ·   What Links Here

Active Members:

Search:

 

Create or Find Page:

 

View iOS Address Types

Structure of Address Types Token

The IOS_ADDRESS_TYPES token (5.0 versions and above) is in a JSON format and may be sometimes a little cumbersome to manipulate. I would recommend using the free jayson app available on the app store to edit however any text editor will do.

The Token is driven by the address type number and the corresponding address type will reflect that of the locations. the structure is as follows:

{
  “LocationTypes”: [
  {
    “AddressType”: “3”,
    “Location”: [
      {
      “Type”: “A”,
      “Caption”: “Airport”,
      “Image”: “plane.png”
      },
      {
      “Type”: “H”,
      “Caption”: “Hotels”,
      “Image”: “h-square.png”
      },
      {
      “Type”: “P”,
      “Caption”: “Place”,
      “Image”: “building.png”
      },
      {
      “Type”: “O”,
      “Caption”: “Others”,
      “Image”: “thumb-tack.png”
      },
      {
      “Type”: “R”,
      “Caption”: “Rail”,
      “Image”: “train.png”
      },
      {
      “Type”: “Y”,
      “Caption”: “Cruise Terminal”,
      “Image”: “ship.png”
      },
      {
      “Type”: “PUD”,
      “Caption”: “Preferred Locations”,
      “Image”: “star.png”
      }
    ]
  }
  ]
}


You can arrange the location types in whatever order you like and set the captions as well. NOTE that in order to set the customs to custom captions you will need to add USE_LOCATION_TYPES_CAPTIONS=1 to the IOS_CONFIGURATION token (6.7.1 or above)

You may also want to have different images for the location types and the available images are:
building.png
building.png

city.png
city.png

corp1.png
corp1.png

h-square.png
h-square.png

ship.png
ship.png

plane.png
plane.png

thumb-tack.png
thumb-tack.png

train.png
train.png

star.png
star.png