Skip to content
KNSG edited this page Nov 16, 2019 · 1 revision

3. photo (JSON)

  • There are 2 types of JSON files
    • metadata.json contains album data
    • photo_file_name.json contains individual photo information associating to photo image file.

Metadata: data content description(temporary)

{
  "albumData": {
    "title": "2016/05/07",
    "date": "May 6, 2016 11:45:15 PM",
    "access": "protected",
    "description": "",
    "location": "",
    "geoInfo": null
  },
  "media": []
}
  • albumData : (object) metadata of album data
    • title : (string) album title
    • date : (string) creation date of this album ("MMM dd, yyyy hh:mm:ss a")
    • access : (string) access limitation. (protected, ...)
    • description : (string) description about this album.
    • location : (string) location name ?
    • geoInfo : (object) geo information such as longitude and latitude.
  • media : (array) ??

PHOTO data: data content description(temporary)

{
  "tags": [],
  "description": "",
  "title": "photo_file_name.jpg",
  "people": [],
  "creationTime": 1463144190,
  "modificationTime": 1481420964,
  "comments": [],
  "url": "https://xxxxx/photo_file_name.jpg",
  "geoInfo": {
    "latitude_": 36.225364444444445,
    "longitude_": 140.10670861111112,
    "altitude_": 889.0,
    "latitude_span_": 0.0,
    "longitude_span_": 0.0,
    "uninterpreted": null,
    "optional_0_": 7,
    "isMutable": true,
    "cachedSize": -1
  },
  "geoInfoExif": {
    "latitude_": 36.225364444444445,
    "longitude_": 140.10670861111112,
    "altitude_": 889.0,
    "latitude_span_": 0.0,
    "longitude_span_": 0.0,
    "uninterpreted": null,
    "optional_0_": 7,
    "isMutable": true,
    "cachedSize": -1
  },
  "imageViews": 0,
  "license": null,
  "locale": "ja"
}
  • tags : (array/string) tags associated with this photo
  • description : (string) description about this photo
  • title : (string) photo title( file name )
  • people : (array/??) people who shared with
  • creationTime : (long) creation time in sec
  • modificationTime : (long) creation time in sec
  • comments : (array) comments to this photo
  • url : (string) accessible URL of this photo
  • imageViews : (integer) ?
  • license : (object) license description ?
  • locale : (string) locale. (e.g. jp)
  • geoInfo : (object) Geo information associated with this photo
    • latitude_ : (double) latitude value in degree
    • longitude_ : (double) longitude value in degree
    • altitude_ : (double) altitude value in meter (?)
    • latitude_span_ : (double) latitude span (for google map api?)
    • longitude_span_ : (double) longitude span (for google map api?)
    • uninterpreted : ?
    • optional_0_ : ?
    • isMutable : (boolean) mutable flag?
    • cachedSize : (int) ?
  • geoInfoExif : (object) Geo information from EXIF.
    • object contents are same as geoInfo
Clone this wiki locally