changedOutput schema / properties / place / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "altitude": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "accuracy": {
- "description": "Reported vertical accuracy in meters.",
- "type": "number"
- },
- "meters": {
- "description": "Height above the WGS84 ellipsoid, not above sea level.",
- "type": "number"
- }
- },
- "required": [
- "meters",
- "accuracy"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Measured by the device of whoever added the place, there; null if unknown."
- },
- "attrs": {
- "additionalProperties": false,
- "properties": {
- "coldDrinks": {
- "type": "boolean"
- },
- "hotDrinks": {
- "type": "boolean"
- },
- "indoor": {
- "type": "boolean"
- },
- "operator": {
- "maxLength": 120,
- "type": "string"
- },
- "payment": {
- "items": {
- "enum": [
- "cash",
- "ic_card",
- "e_money",
- "credit_card",
- "qr"
- ],
- "type": "string"
- },
- "maxItems": 5,
- "type": "array"
- },
- "vends": {
- "items": {
- "enum": [
- "drinks",
- "food",
- "coffee",
- "ice_cream",
- "rice_polishing",
- "sweets",
- "alcohol",
- "cigarettes",
- "other"
- ],
- "type": "string"
- },
- "maxItems": 9,
- "type": "array"
- }
- },
- "type": "object"
- },
- "author": {
- "additionalProperties": false,
- "description": "Shown as \"Discovered by @handle\" next to the source.",
- "properties": {
- "handle": {
- "description": "Username of whoever added the place; null if imported or anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "category": {
- "const": "vending_machine",
- "type": "string"
- },
- "confirmCount": {
- "description": "Votes that the place still exists.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmVoteUntil": {
- "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmation": {
- "additionalProperties": false,
- "description": "Whether the Ippuku community has confirmed the place recently.",
- "properties": {
- "at": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
- },
- "bonusPoints": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Points for confirming it while open."
- },
- "mineAt": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Own valid confirmation (exact time); null without sign-in."
- },
- "open": {
- "description": "No confirmation in the last 12 months.",
- "type": "boolean"
- },
- "until": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day until which the place counts as confirmed (at plus 12 months)."
- }
- },
- "required": [
- "at",
- "until",
- "open",
- "bonusPoints",
- "mineAt"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataset": {
- "additionalProperties": false,
- "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
- "properties": {
- "credit": {
- "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
- "type": "string"
- },
- "license": {
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "description": "Short name, e.g. \"Public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "publisher": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "publishers": {
- "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "description": "The value of `source` on its places.",
- "type": "string"
- },
- "title": {
- "additionalProperties": false,
- "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "url": {
- "description": "Where the dataset is published.",
- "type": "string"
- }
- },
- "required": [
- "source",
- "name",
- "title",
- "license",
- "url",
- "credit",
- "publisher",
- "publishers"
- ],
- "type": "object"
- },
- "fieldOrigins": {
- "anyOf": [
- {
- "additionalProperties": {
- "enum": [
- "source",
- "community"
- ],
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
- },
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "mine": {
- "type": "boolean"
- },
- "myVote": {
- "anyOf": [
- {
- "enum": [
- "confirm",
- "reject"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "nameJa": {
- "description": "Japanese name, if different.",
- "type": [
- "string",
- "null"
- ]
- },
- "osm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": {
- "enum": [
- "node",
- "way",
- "relation"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The OpenStreetMap object, for places from OSM."
- },
- "pendingPhotos": {
- "description": "Own photos waiting for review; always empty without sign-in.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "url": {
- "description": "Needs the session; the preview is at url + \"/preview\".",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "photos": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
- "properties": {
- "handle": {
- "description": "Username of the photographer; null if anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "license": {
- "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
- "enum": [
- "cc_by_4_0",
- "none"
- ],
- "type": "string"
- },
- "mine": {
- "description": "Uploaded by the signed-in user; always false without sign-in.",
- "type": "boolean"
- },
- "url": {
- "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url",
- "author",
- "license",
- "mine"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "publisher": {
- "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
- "type": "string"
- },
- "rejectCount": {
- "description": "Votes that the place is gone.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "rev": {
- "description": "Revision; higher is newer.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "source": {
- "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
- "type": "string"
- },
- "status": {
- "description": "active, or removed after users reported it gone. The others only for its author and admins.",
- "enum": [
- "active",
- "removed",
- "pending",
- "rejected",
- "hidden"
- ],
- "type": "string"
- },
- "thankedToday": {
- "type": "boolean"
- },
- "thanks": {
- "description": "Thanks the place received.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "lat",
- "lon",
- "name",
- "nameJa",
- "source",
- "osm",
- "status",
- "confirmCount",
- "rejectCount",
- "createdAt",
- "updatedAt",
- "rev",
- "category",
- "attrs",
- "author",
- "altitude",
- "fieldOrigins",
- "photos",
- "myVote",
- "confirmation",
- "pendingPhotos",
- "mine",
- "thanks",
- "thankedToday"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "altitude": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "accuracy": {
- "description": "Reported vertical accuracy in meters.",
- "type": "number"
- },
- "meters": {
- "description": "Height above the WGS84 ellipsoid, not above sea level.",
- "type": "number"
- }
- },
- "required": [
- "meters",
- "accuracy"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Measured by the device of whoever added the place, there; null if unknown."
- },
- "attrs": {
- "additionalProperties": false,
- "properties": {
- "access": {
- "maxLength": 280,
- "type": "string"
- },
- "babyChanging": {
- "type": "boolean"
- },
- "fee": {
- "type": "boolean"
- },
- "gender": {
- "enum": [
- "separate",
- "unisex",
- "male_only",
- "female_only"
- ],
- "type": "string"
- },
- "open24h": {
- "type": "boolean"
- },
- "washlet": {
- "type": "boolean"
- },
- "wheelchair": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "author": {
- "additionalProperties": false,
- "description": "Shown as \"Discovered by @handle\" next to the source.",
- "properties": {
- "handle": {
- "description": "Username of whoever added the place; null if imported or anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "category": {
- "const": "toilet",
- "type": "string"
- },
- "confirmCount": {
- "description": "Votes that the place still exists.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmVoteUntil": {
- "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmation": {
- "additionalProperties": false,
- "description": "Whether the Ippuku community has confirmed the place recently.",
- "properties": {
- "at": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
- },
- "bonusPoints": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Points for confirming it while open."
- },
- "mineAt": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Own valid confirmation (exact time); null without sign-in."
- },
- "open": {
- "description": "No confirmation in the last 12 months.",
- "type": "boolean"
- },
- "until": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day until which the place counts as confirmed (at plus 12 months)."
- }
- },
- "required": [
- "at",
- "until",
- "open",
- "bonusPoints",
- "mineAt"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataset": {
- "additionalProperties": false,
- "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
- "properties": {
- "credit": {
- "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
- "type": "string"
- },
- "license": {
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "description": "Short name, e.g. \"Public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "publisher": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "publishers": {
- "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "description": "The value of `source` on its places.",
- "type": "string"
- },
- "title": {
- "additionalProperties": false,
- "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "url": {
- "description": "Where the dataset is published.",
- "type": "string"
- }
- },
- "required": [
- "source",
- "name",
- "title",
- "license",
- "url",
- "credit",
- "publisher",
- "publishers"
- ],
- "type": "object"
- },
- "fieldOrigins": {
- "anyOf": [
- {
- "additionalProperties": {
- "enum": [
- "source",
- "community"
- ],
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
- },
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "mine": {
- "type": "boolean"
- },
- "myVote": {
- "anyOf": [
- {
- "enum": [
- "confirm",
- "reject"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "nameJa": {
- "description": "Japanese name, if different.",
- "type": [
- "string",
- "null"
- ]
- },
- "osm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": {
- "enum": [
- "node",
- "way",
- "relation"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The OpenStreetMap object, for places from OSM."
- },
- "pendingPhotos": {
- "description": "Own photos waiting for review; always empty without sign-in.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "url": {
- "description": "Needs the session; the preview is at url + \"/preview\".",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "photos": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
- "properties": {
- "handle": {
- "description": "Username of the photographer; null if anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "license": {
- "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
- "enum": [
- "cc_by_4_0",
- "none"
- ],
- "type": "string"
- },
- "mine": {
- "description": "Uploaded by the signed-in user; always false without sign-in.",
- "type": "boolean"
- },
- "url": {
- "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url",
- "author",
- "license",
- "mine"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "publisher": {
- "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
- "type": "string"
- },
- "rejectCount": {
- "description": "Votes that the place is gone.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "rev": {
- "description": "Revision; higher is newer.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "source": {
- "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
- "type": "string"
- },
- "status": {
- "description": "active, or removed after users reported it gone. The others only for its author and admins.",
- "enum": [
- "active",
- "removed",
- "pending",
- "rejected",
- "hidden"
- ],
- "type": "string"
- },
- "thankedToday": {
- "type": "boolean"
- },
- "thanks": {
- "description": "Thanks the place received.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "lat",
- "lon",
- "name",
- "nameJa",
- "source",
- "osm",
- "status",
- "confirmCount",
- "rejectCount",
- "createdAt",
- "updatedAt",
- "rev",
- "category",
- "attrs",
- "author",
- "altitude",
- "fieldOrigins",
- "photos",
- "myVote",
- "confirmation",
- "pendingPhotos",
- "mine",
- "thanks",
- "thankedToday"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "altitude": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "accuracy": {
- "description": "Reported vertical accuracy in meters.",
- "type": "number"
- },
- "meters": {
- "description": "Height above the WGS84 ellipsoid, not above sea level.",
- "type": "number"
- }
- },
- "required": [
- "meters",
- "accuracy"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Measured by the device of whoever added the place, there; null if unknown."
- },
- "attrs": {
- "additionalProperties": false,
- "properties": {
- "access": {
- "maxLength": 280,
- "type": "string"
- },
- "covered": {
- "type": "boolean"
- },
- "customersOnly": {
- "type": "boolean"
- },
- "enclosed": {
- "type": "boolean"
- },
- "fee": {
- "type": "boolean"
- },
- "heatedTobaccoOnly": {
- "type": "boolean"
- },
- "indoor": {
- "type": "boolean"
- },
- "open24h": {
- "type": "boolean"
- },
- "openingHours": {
- "maxLength": 200,
- "type": "string"
- },
- "seating": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "author": {
- "additionalProperties": false,
- "description": "Shown as \"Discovered by @handle\" next to the source.",
- "properties": {
- "handle": {
- "description": "Username of whoever added the place; null if imported or anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "category": {
- "const": "smoking_area",
- "type": "string"
- },
- "confirmCount": {
- "description": "Votes that the place still exists.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmVoteUntil": {
- "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmation": {
- "additionalProperties": false,
- "description": "Whether the Ippuku community has confirmed the place recently.",
- "properties": {
- "at": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
- },
- "bonusPoints": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Points for confirming it while open."
- },
- "mineAt": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Own valid confirmation (exact time); null without sign-in."
- },
- "open": {
- "description": "No confirmation in the last 12 months.",
- "type": "boolean"
- },
- "until": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day until which the place counts as confirmed (at plus 12 months)."
- }
- },
- "required": [
- "at",
- "until",
- "open",
- "bonusPoints",
- "mineAt"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataset": {
- "additionalProperties": false,
- "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
- "properties": {
- "credit": {
- "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
- "type": "string"
- },
- "license": {
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "description": "Short name, e.g. \"Public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "publisher": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "publishers": {
- "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "description": "The value of `source` on its places.",
- "type": "string"
- },
- "title": {
- "additionalProperties": false,
- "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "url": {
- "description": "Where the dataset is published.",
- "type": "string"
- }
- },
- "required": [
- "source",
- "name",
- "title",
- "license",
- "url",
- "credit",
- "publisher",
- "publishers"
- ],
- "type": "object"
- },
- "fieldOrigins": {
- "anyOf": [
- {
- "additionalProperties": {
- "enum": [
- "source",
- "community"
- ],
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
- },
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "mine": {
- "type": "boolean"
- },
- "myVote": {
- "anyOf": [
- {
- "enum": [
- "confirm",
- "reject"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "nameJa": {
- "description": "Japanese name, if different.",
- "type": [
- "string",
- "null"
- ]
- },
- "osm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": {
- "enum": [
- "node",
- "way",
- "relation"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The OpenStreetMap object, for places from OSM."
- },
- "pendingPhotos": {
- "description": "Own photos waiting for review; always empty without sign-in.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "url": {
- "description": "Needs the session; the preview is at url + \"/preview\".",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "photos": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
- "properties": {
- "handle": {
- "description": "Username of the photographer; null if anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "license": {
- "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
- "enum": [
- "cc_by_4_0",
- "none"
- ],
- "type": "string"
- },
- "mine": {
- "description": "Uploaded by the signed-in user; always false without sign-in.",
- "type": "boolean"
- },
- "url": {
- "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url",
- "author",
- "license",
- "mine"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "publisher": {
- "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
- "type": "string"
- },
- "rejectCount": {
- "description": "Votes that the place is gone.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "rev": {
- "description": "Revision; higher is newer.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "source": {
- "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
- "type": "string"
- },
- "status": {
- "description": "active, or removed after users reported it gone. The others only for its author and admins.",
- "enum": [
- "active",
- "removed",
- "pending",
- "rejected",
- "hidden"
- ],
- "type": "string"
- },
- "thankedToday": {
- "type": "boolean"
- },
- "thanks": {
- "description": "Thanks the place received.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "lat",
- "lon",
- "name",
- "nameJa",
- "source",
- "osm",
- "status",
- "confirmCount",
- "rejectCount",
- "createdAt",
- "updatedAt",
- "rev",
- "category",
- "attrs",
- "author",
- "altitude",
- "fieldOrigins",
- "photos",
- "myVote",
- "confirmation",
- "pendingPhotos",
- "mine",
- "thanks",
- "thankedToday"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "altitude": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "accuracy": {
- "description": "Reported vertical accuracy in meters.",
- "type": "number"
- },
- "meters": {
- "description": "Height above the WGS84 ellipsoid, not above sea level.",
- "type": "number"
- }
- },
- "required": [
- "meters",
- "accuracy"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Measured by the device of whoever added the place, there; null if unknown."
- },
- "attrs": {
- "additionalProperties": false,
- "properties": {
- "access": {
- "maxLength": 280,
- "type": "string"
- },
- "customersOnly": {
- "type": "boolean"
- },
- "indoor": {
- "type": "boolean"
- },
- "sorting": {
- "items": {
- "enum": [
- "burnable",
- "non_burnable",
- "pet_bottles",
- "cans_bottles",
- "paper"
- ],
- "type": "string"
- },
- "maxItems": 5,
- "type": "array"
- }
- },
- "type": "object"
- },
- "author": {
- "additionalProperties": false,
- "description": "Shown as \"Discovered by @handle\" next to the source.",
- "properties": {
- "handle": {
- "description": "Username of whoever added the place; null if imported or anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "category": {
- "const": "waste_basket",
- "type": "string"
- },
- "confirmCount": {
- "description": "Votes that the place still exists.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmVoteUntil": {
- "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmation": {
- "additionalProperties": false,
- "description": "Whether the Ippuku community has confirmed the place recently.",
- "properties": {
- "at": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
- },
- "bonusPoints": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Points for confirming it while open."
- },
- "mineAt": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Own valid confirmation (exact time); null without sign-in."
- },
- "open": {
- "description": "No confirmation in the last 12 months.",
- "type": "boolean"
- },
- "until": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day until which the place counts as confirmed (at plus 12 months)."
- }
- },
- "required": [
- "at",
- "until",
- "open",
- "bonusPoints",
- "mineAt"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataset": {
- "additionalProperties": false,
- "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
- "properties": {
- "credit": {
- "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
- "type": "string"
- },
- "license": {
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "description": "Short name, e.g. \"Public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "publisher": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "publishers": {
- "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "description": "The value of `source` on its places.",
- "type": "string"
- },
- "title": {
- "additionalProperties": false,
- "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "url": {
- "description": "Where the dataset is published.",
- "type": "string"
- }
- },
- "required": [
- "source",
- "name",
- "title",
- "license",
- "url",
- "credit",
- "publisher",
- "publishers"
- ],
- "type": "object"
- },
- "fieldOrigins": {
- "anyOf": [
- {
- "additionalProperties": {
- "enum": [
- "source",
- "community"
- ],
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
- },
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "mine": {
- "type": "boolean"
- },
- "myVote": {
- "anyOf": [
- {
- "enum": [
- "confirm",
- "reject"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "nameJa": {
- "description": "Japanese name, if different.",
- "type": [
- "string",
- "null"
- ]
- },
- "osm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": {
- "enum": [
- "node",
- "way",
- "relation"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The OpenStreetMap object, for places from OSM."
- },
- "pendingPhotos": {
- "description": "Own photos waiting for review; always empty without sign-in.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "url": {
- "description": "Needs the session; the preview is at url + \"/preview\".",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "photos": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
- "properties": {
- "handle": {
- "description": "Username of the photographer; null if anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "license": {
- "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
- "enum": [
- "cc_by_4_0",
- "none"
- ],
- "type": "string"
- },
- "mine": {
- "description": "Uploaded by the signed-in user; always false without sign-in.",
- "type": "boolean"
- },
- "url": {
- "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url",
- "author",
- "license",
- "mine"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "publisher": {
- "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
- "type": "string"
- },
- "rejectCount": {
- "description": "Votes that the place is gone.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "rev": {
- "description": "Revision; higher is newer.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "source": {
- "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
- "type": "string"
- },
- "status": {
- "description": "active, or removed after users reported it gone. The others only for its author and admins.",
- "enum": [
- "active",
- "removed",
- "pending",
- "rejected",
- "hidden"
- ],
- "type": "string"
- },
- "thankedToday": {
- "type": "boolean"
- },
- "thanks": {
- "description": "Thanks the place received.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "lat",
- "lon",
- "name",
- "nameJa",
- "source",
- "osm",
- "status",
- "confirmCount",
- "rejectCount",
- "createdAt",
- "updatedAt",
- "rev",
- "category",
- "attrs",
- "author",
- "altitude",
- "fieldOrigins",
- "photos",
- "myVote",
- "confirmation",
- "pendingPhotos",
- "mine",
- "thanks",
- "thankedToday"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "altitude": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "accuracy": {
- "description": "Reported vertical accuracy in meters.",
- "type": "number"
- },
- "meters": {
- "description": "Height above the WGS84 ellipsoid, not above sea level.",
- "type": "number"
- }
- },
- "required": [
- "meters",
- "accuracy"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Measured by the device of whoever added the place, there; null if unknown."
- },
- "attrs": {
- "additionalProperties": false,
- "properties": {
- "access": {
- "maxLength": 280,
- "type": "string"
- },
- "insideGates": {
- "type": "boolean"
- },
- "kind": {
- "enum": [
- "station",
- "tourist",
- "rally",
- "michi_no_eki"
- ],
- "type": "string"
- },
- "openingHours": {
- "maxLength": 200,
- "type": "string"
- }
- },
- "type": "object"
- },
- "author": {
- "additionalProperties": false,
- "description": "Shown as \"Discovered by @handle\" next to the source.",
- "properties": {
- "handle": {
- "description": "Username of whoever added the place; null if imported or anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "category": {
- "const": "stamp",
- "type": "string"
- },
- "confirmCount": {
- "description": "Votes that the place still exists.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmVoteUntil": {
- "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmation": {
- "additionalProperties": false,
- "description": "Whether the Ippuku community has confirmed the place recently.",
- "properties": {
- "at": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
- },
- "bonusPoints": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Points for confirming it while open."
- },
- "mineAt": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Own valid confirmation (exact time); null without sign-in."
- },
- "open": {
- "description": "No confirmation in the last 12 months.",
- "type": "boolean"
- },
- "until": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day until which the place counts as confirmed (at plus 12 months)."
- }
- },
- "required": [
- "at",
- "until",
- "open",
- "bonusPoints",
- "mineAt"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataset": {
- "additionalProperties": false,
- "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
- "properties": {
- "credit": {
- "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
- "type": "string"
- },
- "license": {
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "description": "Short name, e.g. \"Public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "publisher": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "publishers": {
- "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "description": "The value of `source` on its places.",
- "type": "string"
- },
- "title": {
- "additionalProperties": false,
- "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "url": {
- "description": "Where the dataset is published.",
- "type": "string"
- }
- },
- "required": [
- "source",
- "name",
- "title",
- "license",
- "url",
- "credit",
- "publisher",
- "publishers"
- ],
- "type": "object"
- },
- "fieldOrigins": {
- "anyOf": [
- {
- "additionalProperties": {
- "enum": [
- "source",
- "community"
- ],
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
- },
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "mine": {
- "type": "boolean"
- },
- "myVote": {
- "anyOf": [
- {
- "enum": [
- "confirm",
- "reject"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "nameJa": {
- "description": "Japanese name, if different.",
- "type": [
- "string",
- "null"
- ]
- },
- "osm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": {
- "enum": [
- "node",
- "way",
- "relation"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The OpenStreetMap object, for places from OSM."
- },
- "pendingPhotos": {
- "description": "Own photos waiting for review; always empty without sign-in.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "url": {
- "description": "Needs the session; the preview is at url + \"/preview\".",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "photos": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
- "properties": {
- "handle": {
- "description": "Username of the photographer; null if anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "license": {
- "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
- "enum": [
- "cc_by_4_0",
- "none"
- ],
- "type": "string"
- },
- "mine": {
- "description": "Uploaded by the signed-in user; always false without sign-in.",
- "type": "boolean"
- },
- "url": {
- "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url",
- "author",
- "license",
- "mine"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "publisher": {
- "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
- "type": "string"
- },
- "rejectCount": {
- "description": "Votes that the place is gone.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "rev": {
- "description": "Revision; higher is newer.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "source": {
- "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
- "type": "string"
- },
- "status": {
- "description": "active, or removed after users reported it gone. The others only for its author and admins.",
- "enum": [
- "active",
- "removed",
- "pending",
- "rejected",
- "hidden"
- ],
- "type": "string"
- },
- "thankedToday": {
- "type": "boolean"
- },
- "thanks": {
- "description": "Thanks the place received.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "lat",
- "lon",
- "name",
- "nameJa",
- "source",
- "osm",
- "status",
- "confirmCount",
- "rejectCount",
- "createdAt",
- "updatedAt",
- "rev",
- "category",
- "attrs",
- "author",
- "altitude",
- "fieldOrigins",
- "photos",
- "myVote",
- "confirmation",
- "pendingPhotos",
- "mine",
- "thanks",
- "thankedToday"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "altitude": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "accuracy": {
- "description": "Reported vertical accuracy in meters.",
- "type": "number"
- },
- "meters": {
- "description": "Height above the WGS84 ellipsoid, not above sea level.",
- "type": "number"
- }
- },
- "required": [
- "meters",
- "accuracy"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Measured by the device of whoever added the place, there; null if unknown."
- },
- "attrs": {
- "additionalProperties": false,
- "properties": {
- "indoor": {
- "type": "boolean"
- },
- "insideGates": {
- "type": "boolean"
- },
- "payment": {
- "items": {
- "enum": [
- "cash",
- "ic_card",
- "e_money",
- "credit_card",
- "qr"
- ],
- "type": "string"
- },
- "maxItems": 5,
- "type": "array"
- },
- "sizes": {
- "items": {
- "enum": [
- "small",
- "medium",
- "large",
- "extra_large"
- ],
- "type": "string"
- },
- "maxItems": 4,
- "type": "array"
- }
- },
- "type": "object"
- },
- "author": {
- "additionalProperties": false,
- "description": "Shown as \"Discovered by @handle\" next to the source.",
- "properties": {
- "handle": {
- "description": "Username of whoever added the place; null if imported or anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "category": {
- "const": "coin_locker",
- "type": "string"
- },
- "confirmCount": {
- "description": "Votes that the place still exists.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmVoteUntil": {
- "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "confirmation": {
- "additionalProperties": false,
- "description": "Whether the Ippuku community has confirmed the place recently.",
- "properties": {
- "at": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
- },
- "bonusPoints": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Points for confirming it while open."
- },
- "mineAt": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Own valid confirmation (exact time); null without sign-in."
- },
- "open": {
- "description": "No confirmation in the last 12 months.",
- "type": "boolean"
- },
- "until": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Day until which the place counts as confirmed (at plus 12 months)."
- }
- },
- "required": [
- "at",
- "until",
- "open",
- "bonusPoints",
- "mineAt"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "dataset": {
- "additionalProperties": false,
- "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
- "properties": {
- "credit": {
- "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
- "type": "string"
- },
- "license": {
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "description": "Short name, e.g. \"Public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "publisher": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "publishers": {
- "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "description": "Japanese local government code.",
- "type": "string"
- },
- "name": {
- "additionalProperties": false,
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- }
- },
- "required": [
- "code",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "description": "The value of `source` on its places.",
- "type": "string"
- },
- "title": {
- "additionalProperties": false,
- "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
- "properties": {
- "de": {
- "type": "string"
- },
- "en": {
- "type": "string"
- },
- "es": {
- "type": "string"
- },
- "fr": {
- "type": "string"
- },
- "ja": {
- "type": "string"
- },
- "ko": {
- "type": "string"
- },
- "zh-Hans": {
- "type": "string"
- },
- "zh-Hant": {
- "type": "string"
- }
- },
- "required": [
- "en",
- "ja",
- "de",
- "ko",
- "zh-Hans",
- "zh-Hant",
- "fr",
- "es"
- ],
- "type": "object"
- },
- "url": {
- "description": "Where the dataset is published.",
- "type": "string"
- }
- },
- "required": [
- "source",
- "name",
- "title",
- "license",
- "url",
- "credit",
- "publisher",
- "publishers"
- ],
- "type": "object"
- },
- "fieldOrigins": {
- "anyOf": [
- {
- "additionalProperties": {
- "enum": [
- "source",
- "community"
- ],
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
- },
- "id": {
- "type": "string"
- },
- "lat": {
- "type": "number"
- },
- "lon": {
- "type": "number"
- },
- "mine": {
- "type": "boolean"
- },
- "myVote": {
- "anyOf": [
- {
- "enum": [
- "confirm",
- "reject"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "nameJa": {
- "description": "Japanese name, if different.",
- "type": [
- "string",
- "null"
- ]
- },
- "osm": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "type": {
- "enum": [
- "node",
- "way",
- "relation"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "id"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The OpenStreetMap object, for places from OSM."
- },
- "pendingPhotos": {
- "description": "Own photos waiting for review; always empty without sign-in.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "url": {
- "description": "Needs the session; the preview is at url + \"/preview\".",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "photos": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
- "properties": {
- "handle": {
- "description": "Username of the photographer; null if anonymous.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "handle"
- ],
- "type": "object"
- },
- "createdAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "height": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "license": {
- "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
- "enum": [
- "cc_by_4_0",
- "none"
- ],
- "type": "string"
- },
- "mine": {
- "description": "Uploaded by the signed-in user; always false without sign-in.",
- "type": "boolean"
- },
- "url": {
- "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
- "type": "string"
- },
- "width": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "width",
- "height",
- "createdAt",
- "url",
- "author",
- "license",
- "mine"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "publisher": {
- "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
- "type": "string"
- },
- "rejectCount": {
- "description": "Votes that the place is gone.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "rev": {
- "description": "Revision; higher is newer.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "source": {
- "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
- "type": "string"
- },
- "status": {
- "description": "active, or removed after users reported it gone. The others only for its author and admins.",
- "enum": [
- "active",
- "removed",
- "pending",
- "rejected",
- "hidden"
- ],
- "type": "string"
- },
- "thankedToday": {
- "type": "boolean"
- },
- "thanks": {
- "description": "Thanks the place received.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "updatedAt": {
- "description": "Unix milliseconds; day only (12:00 Japan time).",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "lat",
- "lon",
- "name",
- "nameJa",
- "source",
- "osm",
- "status",
- "confirmCount",
- "rejectCount",
- "createdAt",
- "updatedAt",
- "rev",
- "category",
- "attrs",
- "author",
- "altitude",
- "fieldOrigins",
- "photos",
- "myVote",
- "confirmation",
- "pendingPhotos",
- "mine",
- "thanks",
- "thankedToday"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "altitude": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accuracy": {
+ "description": "Reported vertical accuracy in meters.",
+ "type": "number"
+ },
+ "meters": {
+ "description": "Height above the WGS84 ellipsoid, not above sea level.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "meters",
+ "accuracy"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Measured by the device of whoever added the place, there; null if unknown."
+ },
+ "attrs": {
+ "additionalProperties": false,
+ "properties": {
+ "coldDrinks": {
+ "type": "boolean"
+ },
+ "hotDrinks": {
+ "type": "boolean"
+ },
+ "indoor": {
+ "type": "boolean"
+ },
+ "operator": {
+ "maxLength": 120,
+ "type": "string"
+ },
+ "payment": {
+ "items": {
+ "enum": [
+ "cash",
+ "ic_card",
+ "e_money",
+ "credit_card",
+ "qr"
+ ],
+ "type": "string"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "vends": {
+ "items": {
+ "enum": [
+ "drinks",
+ "food",
+ "coffee",
+ "ice_cream",
+ "rice_polishing",
+ "sweets",
+ "alcohol",
+ "cigarettes",
+ "other"
+ ],
+ "type": "string"
+ },
+ "maxItems": 9,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "author": {
+ "additionalProperties": false,
+ "description": "Shown as \"Discovered by @handle\" next to the source.",
+ "properties": {
+ "handle": {
+ "description": "Username of whoever added the place; null if imported or anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "category": {
+ "const": "vending_machine",
+ "type": "string"
+ },
+ "confirmCount": {
+ "description": "Votes that the place still exists.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmVoteUntil": {
+ "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmation": {
+ "additionalProperties": false,
+ "description": "Whether the Ippuku community has confirmed the place recently.",
+ "properties": {
+ "at": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
+ },
+ "bonusPoints": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Points for confirming it while open."
+ },
+ "mineAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Own valid confirmation (exact time); null without sign-in."
+ },
+ "open": {
+ "description": "No confirmation in the last 12 months.",
+ "type": "boolean"
+ },
+ "until": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day until which the place counts as confirmed (at plus 12 months)."
+ }
+ },
+ "required": [
+ "at",
+ "until",
+ "open",
+ "bonusPoints",
+ "mineAt"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataset": {
+ "additionalProperties": false,
+ "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
+ "properties": {
+ "credit": {
+ "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
+ "type": "string"
+ },
+ "license": {
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "description": "Short name, e.g. \"Public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "publisher": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "publishers": {
+ "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The value of `source` on its places.",
+ "type": "string"
+ },
+ "title": {
+ "additionalProperties": false,
+ "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "description": "Where the dataset is published.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "name",
+ "title",
+ "license",
+ "url",
+ "credit",
+ "publisher",
+ "publishers"
+ ],
+ "type": "object"
+ },
+ "fieldOrigins": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "enum": [
+ "source",
+ "community"
+ ],
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
+ },
+ "i18n": {
+ "additionalProperties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "enum": [
+ "name",
+ "operator",
+ "access",
+ "openingHours"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "description": "English versions of the Japanese texts of an imported place, by language (only en so far): name, and from attrs operator, access and openingHours. From OpenStreetMap (name:en) where it has one, otherwise machine-translated. Only the keys that have a version; absent if there is none. Show it instead of the Japanese text to readers of other languages, and keep the original visible.",
+ "propertyNames": {
+ "enum": [
+ "en"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "myVote": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm",
+ "reject"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nameJa": {
+ "description": "Japanese name, if different.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": {
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The OpenStreetMap object, for places from OSM."
+ },
+ "pendingPhotos": {
+ "description": "Own photos waiting for review; always empty without sign-in.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Needs the session; the preview is at url + \"/preview\".",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "photos": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
+ "properties": {
+ "handle": {
+ "description": "Username of the photographer; null if anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "license": {
+ "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
+ "enum": [
+ "cc_by_4_0",
+ "none"
+ ],
+ "type": "string"
+ },
+ "mine": {
+ "description": "Uploaded by the signed-in user; always false without sign-in.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url",
+ "author",
+ "license",
+ "mine"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "publisher": {
+ "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
+ "type": "string"
+ },
+ "rejectCount": {
+ "description": "Votes that the place is gone.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "rev": {
+ "description": "Revision; higher is newer.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "source": {
+ "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
+ "type": "string"
+ },
+ "status": {
+ "description": "active, or removed after users reported it gone. The others only for its author and admins.",
+ "enum": [
+ "active",
+ "removed",
+ "pending",
+ "rejected",
+ "hidden"
+ ],
+ "type": "string"
+ },
+ "thankedToday": {
+ "type": "boolean"
+ },
+ "thanks": {
+ "description": "Thanks the place received.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "lat",
+ "lon",
+ "name",
+ "nameJa",
+ "source",
+ "osm",
+ "status",
+ "confirmCount",
+ "rejectCount",
+ "createdAt",
+ "updatedAt",
+ "rev",
+ "category",
+ "attrs",
+ "author",
+ "altitude",
+ "fieldOrigins",
+ "photos",
+ "myVote",
+ "confirmation",
+ "pendingPhotos",
+ "mine",
+ "thanks",
+ "thankedToday"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "altitude": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accuracy": {
+ "description": "Reported vertical accuracy in meters.",
+ "type": "number"
+ },
+ "meters": {
+ "description": "Height above the WGS84 ellipsoid, not above sea level.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "meters",
+ "accuracy"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Measured by the device of whoever added the place, there; null if unknown."
+ },
+ "attrs": {
+ "additionalProperties": false,
+ "properties": {
+ "access": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "babyChanging": {
+ "type": "boolean"
+ },
+ "fee": {
+ "type": "boolean"
+ },
+ "gender": {
+ "enum": [
+ "separate",
+ "unisex",
+ "male_only",
+ "female_only"
+ ],
+ "type": "string"
+ },
+ "open24h": {
+ "type": "boolean"
+ },
+ "washlet": {
+ "type": "boolean"
+ },
+ "wheelchair": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "author": {
+ "additionalProperties": false,
+ "description": "Shown as \"Discovered by @handle\" next to the source.",
+ "properties": {
+ "handle": {
+ "description": "Username of whoever added the place; null if imported or anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "category": {
+ "const": "toilet",
+ "type": "string"
+ },
+ "confirmCount": {
+ "description": "Votes that the place still exists.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmVoteUntil": {
+ "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmation": {
+ "additionalProperties": false,
+ "description": "Whether the Ippuku community has confirmed the place recently.",
+ "properties": {
+ "at": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
+ },
+ "bonusPoints": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Points for confirming it while open."
+ },
+ "mineAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Own valid confirmation (exact time); null without sign-in."
+ },
+ "open": {
+ "description": "No confirmation in the last 12 months.",
+ "type": "boolean"
+ },
+ "until": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day until which the place counts as confirmed (at plus 12 months)."
+ }
+ },
+ "required": [
+ "at",
+ "until",
+ "open",
+ "bonusPoints",
+ "mineAt"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataset": {
+ "additionalProperties": false,
+ "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
+ "properties": {
+ "credit": {
+ "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
+ "type": "string"
+ },
+ "license": {
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "description": "Short name, e.g. \"Public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "publisher": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "publishers": {
+ "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The value of `source` on its places.",
+ "type": "string"
+ },
+ "title": {
+ "additionalProperties": false,
+ "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "description": "Where the dataset is published.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "name",
+ "title",
+ "license",
+ "url",
+ "credit",
+ "publisher",
+ "publishers"
+ ],
+ "type": "object"
+ },
+ "fieldOrigins": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "enum": [
+ "source",
+ "community"
+ ],
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
+ },
+ "i18n": {
+ "additionalProperties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "enum": [
+ "name",
+ "operator",
+ "access",
+ "openingHours"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "description": "English versions of the Japanese texts of an imported place, by language (only en so far): name, and from attrs operator, access and openingHours. From OpenStreetMap (name:en) where it has one, otherwise machine-translated. Only the keys that have a version; absent if there is none. Show it instead of the Japanese text to readers of other languages, and keep the original visible.",
+ "propertyNames": {
+ "enum": [
+ "en"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "myVote": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm",
+ "reject"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nameJa": {
+ "description": "Japanese name, if different.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": {
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The OpenStreetMap object, for places from OSM."
+ },
+ "pendingPhotos": {
+ "description": "Own photos waiting for review; always empty without sign-in.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Needs the session; the preview is at url + \"/preview\".",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "photos": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
+ "properties": {
+ "handle": {
+ "description": "Username of the photographer; null if anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "license": {
+ "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
+ "enum": [
+ "cc_by_4_0",
+ "none"
+ ],
+ "type": "string"
+ },
+ "mine": {
+ "description": "Uploaded by the signed-in user; always false without sign-in.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url",
+ "author",
+ "license",
+ "mine"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "publisher": {
+ "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
+ "type": "string"
+ },
+ "rejectCount": {
+ "description": "Votes that the place is gone.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "rev": {
+ "description": "Revision; higher is newer.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "source": {
+ "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
+ "type": "string"
+ },
+ "status": {
+ "description": "active, or removed after users reported it gone. The others only for its author and admins.",
+ "enum": [
+ "active",
+ "removed",
+ "pending",
+ "rejected",
+ "hidden"
+ ],
+ "type": "string"
+ },
+ "thankedToday": {
+ "type": "boolean"
+ },
+ "thanks": {
+ "description": "Thanks the place received.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "lat",
+ "lon",
+ "name",
+ "nameJa",
+ "source",
+ "osm",
+ "status",
+ "confirmCount",
+ "rejectCount",
+ "createdAt",
+ "updatedAt",
+ "rev",
+ "category",
+ "attrs",
+ "author",
+ "altitude",
+ "fieldOrigins",
+ "photos",
+ "myVote",
+ "confirmation",
+ "pendingPhotos",
+ "mine",
+ "thanks",
+ "thankedToday"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "altitude": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accuracy": {
+ "description": "Reported vertical accuracy in meters.",
+ "type": "number"
+ },
+ "meters": {
+ "description": "Height above the WGS84 ellipsoid, not above sea level.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "meters",
+ "accuracy"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Measured by the device of whoever added the place, there; null if unknown."
+ },
+ "attrs": {
+ "additionalProperties": false,
+ "properties": {
+ "access": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "covered": {
+ "type": "boolean"
+ },
+ "customersOnly": {
+ "type": "boolean"
+ },
+ "enclosed": {
+ "type": "boolean"
+ },
+ "fee": {
+ "type": "boolean"
+ },
+ "heatedTobaccoOnly": {
+ "type": "boolean"
+ },
+ "indoor": {
+ "type": "boolean"
+ },
+ "open24h": {
+ "type": "boolean"
+ },
+ "openingHours": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "seating": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "author": {
+ "additionalProperties": false,
+ "description": "Shown as \"Discovered by @handle\" next to the source.",
+ "properties": {
+ "handle": {
+ "description": "Username of whoever added the place; null if imported or anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "category": {
+ "const": "smoking_area",
+ "type": "string"
+ },
+ "confirmCount": {
+ "description": "Votes that the place still exists.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmVoteUntil": {
+ "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmation": {
+ "additionalProperties": false,
+ "description": "Whether the Ippuku community has confirmed the place recently.",
+ "properties": {
+ "at": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
+ },
+ "bonusPoints": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Points for confirming it while open."
+ },
+ "mineAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Own valid confirmation (exact time); null without sign-in."
+ },
+ "open": {
+ "description": "No confirmation in the last 12 months.",
+ "type": "boolean"
+ },
+ "until": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day until which the place counts as confirmed (at plus 12 months)."
+ }
+ },
+ "required": [
+ "at",
+ "until",
+ "open",
+ "bonusPoints",
+ "mineAt"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataset": {
+ "additionalProperties": false,
+ "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
+ "properties": {
+ "credit": {
+ "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
+ "type": "string"
+ },
+ "license": {
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "description": "Short name, e.g. \"Public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "publisher": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "publishers": {
+ "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The value of `source` on its places.",
+ "type": "string"
+ },
+ "title": {
+ "additionalProperties": false,
+ "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "description": "Where the dataset is published.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "name",
+ "title",
+ "license",
+ "url",
+ "credit",
+ "publisher",
+ "publishers"
+ ],
+ "type": "object"
+ },
+ "fieldOrigins": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "enum": [
+ "source",
+ "community"
+ ],
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
+ },
+ "i18n": {
+ "additionalProperties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "enum": [
+ "name",
+ "operator",
+ "access",
+ "openingHours"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "description": "English versions of the Japanese texts of an imported place, by language (only en so far): name, and from attrs operator, access and openingHours. From OpenStreetMap (name:en) where it has one, otherwise machine-translated. Only the keys that have a version; absent if there is none. Show it instead of the Japanese text to readers of other languages, and keep the original visible.",
+ "propertyNames": {
+ "enum": [
+ "en"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "myVote": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm",
+ "reject"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nameJa": {
+ "description": "Japanese name, if different.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": {
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The OpenStreetMap object, for places from OSM."
+ },
+ "pendingPhotos": {
+ "description": "Own photos waiting for review; always empty without sign-in.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Needs the session; the preview is at url + \"/preview\".",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "photos": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
+ "properties": {
+ "handle": {
+ "description": "Username of the photographer; null if anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "license": {
+ "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
+ "enum": [
+ "cc_by_4_0",
+ "none"
+ ],
+ "type": "string"
+ },
+ "mine": {
+ "description": "Uploaded by the signed-in user; always false without sign-in.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url",
+ "author",
+ "license",
+ "mine"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "publisher": {
+ "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
+ "type": "string"
+ },
+ "rejectCount": {
+ "description": "Votes that the place is gone.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "rev": {
+ "description": "Revision; higher is newer.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "source": {
+ "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
+ "type": "string"
+ },
+ "status": {
+ "description": "active, or removed after users reported it gone. The others only for its author and admins.",
+ "enum": [
+ "active",
+ "removed",
+ "pending",
+ "rejected",
+ "hidden"
+ ],
+ "type": "string"
+ },
+ "thankedToday": {
+ "type": "boolean"
+ },
+ "thanks": {
+ "description": "Thanks the place received.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "lat",
+ "lon",
+ "name",
+ "nameJa",
+ "source",
+ "osm",
+ "status",
+ "confirmCount",
+ "rejectCount",
+ "createdAt",
+ "updatedAt",
+ "rev",
+ "category",
+ "attrs",
+ "author",
+ "altitude",
+ "fieldOrigins",
+ "photos",
+ "myVote",
+ "confirmation",
+ "pendingPhotos",
+ "mine",
+ "thanks",
+ "thankedToday"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "altitude": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accuracy": {
+ "description": "Reported vertical accuracy in meters.",
+ "type": "number"
+ },
+ "meters": {
+ "description": "Height above the WGS84 ellipsoid, not above sea level.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "meters",
+ "accuracy"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Measured by the device of whoever added the place, there; null if unknown."
+ },
+ "attrs": {
+ "additionalProperties": false,
+ "properties": {
+ "access": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "customersOnly": {
+ "type": "boolean"
+ },
+ "indoor": {
+ "type": "boolean"
+ },
+ "sorting": {
+ "items": {
+ "enum": [
+ "burnable",
+ "non_burnable",
+ "pet_bottles",
+ "cans_bottles",
+ "paper"
+ ],
+ "type": "string"
+ },
+ "maxItems": 5,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "author": {
+ "additionalProperties": false,
+ "description": "Shown as \"Discovered by @handle\" next to the source.",
+ "properties": {
+ "handle": {
+ "description": "Username of whoever added the place; null if imported or anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "category": {
+ "const": "waste_basket",
+ "type": "string"
+ },
+ "confirmCount": {
+ "description": "Votes that the place still exists.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmVoteUntil": {
+ "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmation": {
+ "additionalProperties": false,
+ "description": "Whether the Ippuku community has confirmed the place recently.",
+ "properties": {
+ "at": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
+ },
+ "bonusPoints": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Points for confirming it while open."
+ },
+ "mineAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Own valid confirmation (exact time); null without sign-in."
+ },
+ "open": {
+ "description": "No confirmation in the last 12 months.",
+ "type": "boolean"
+ },
+ "until": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day until which the place counts as confirmed (at plus 12 months)."
+ }
+ },
+ "required": [
+ "at",
+ "until",
+ "open",
+ "bonusPoints",
+ "mineAt"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataset": {
+ "additionalProperties": false,
+ "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
+ "properties": {
+ "credit": {
+ "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
+ "type": "string"
+ },
+ "license": {
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "description": "Short name, e.g. \"Public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "publisher": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "publishers": {
+ "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The value of `source` on its places.",
+ "type": "string"
+ },
+ "title": {
+ "additionalProperties": false,
+ "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "description": "Where the dataset is published.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "name",
+ "title",
+ "license",
+ "url",
+ "credit",
+ "publisher",
+ "publishers"
+ ],
+ "type": "object"
+ },
+ "fieldOrigins": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "enum": [
+ "source",
+ "community"
+ ],
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
+ },
+ "i18n": {
+ "additionalProperties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "enum": [
+ "name",
+ "operator",
+ "access",
+ "openingHours"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "description": "English versions of the Japanese texts of an imported place, by language (only en so far): name, and from attrs operator, access and openingHours. From OpenStreetMap (name:en) where it has one, otherwise machine-translated. Only the keys that have a version; absent if there is none. Show it instead of the Japanese text to readers of other languages, and keep the original visible.",
+ "propertyNames": {
+ "enum": [
+ "en"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "myVote": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm",
+ "reject"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nameJa": {
+ "description": "Japanese name, if different.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": {
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The OpenStreetMap object, for places from OSM."
+ },
+ "pendingPhotos": {
+ "description": "Own photos waiting for review; always empty without sign-in.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Needs the session; the preview is at url + \"/preview\".",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "photos": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
+ "properties": {
+ "handle": {
+ "description": "Username of the photographer; null if anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "license": {
+ "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
+ "enum": [
+ "cc_by_4_0",
+ "none"
+ ],
+ "type": "string"
+ },
+ "mine": {
+ "description": "Uploaded by the signed-in user; always false without sign-in.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url",
+ "author",
+ "license",
+ "mine"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "publisher": {
+ "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
+ "type": "string"
+ },
+ "rejectCount": {
+ "description": "Votes that the place is gone.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "rev": {
+ "description": "Revision; higher is newer.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "source": {
+ "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
+ "type": "string"
+ },
+ "status": {
+ "description": "active, or removed after users reported it gone. The others only for its author and admins.",
+ "enum": [
+ "active",
+ "removed",
+ "pending",
+ "rejected",
+ "hidden"
+ ],
+ "type": "string"
+ },
+ "thankedToday": {
+ "type": "boolean"
+ },
+ "thanks": {
+ "description": "Thanks the place received.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "lat",
+ "lon",
+ "name",
+ "nameJa",
+ "source",
+ "osm",
+ "status",
+ "confirmCount",
+ "rejectCount",
+ "createdAt",
+ "updatedAt",
+ "rev",
+ "category",
+ "attrs",
+ "author",
+ "altitude",
+ "fieldOrigins",
+ "photos",
+ "myVote",
+ "confirmation",
+ "pendingPhotos",
+ "mine",
+ "thanks",
+ "thankedToday"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "altitude": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accuracy": {
+ "description": "Reported vertical accuracy in meters.",
+ "type": "number"
+ },
+ "meters": {
+ "description": "Height above the WGS84 ellipsoid, not above sea level.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "meters",
+ "accuracy"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Measured by the device of whoever added the place, there; null if unknown."
+ },
+ "attrs": {
+ "additionalProperties": false,
+ "properties": {
+ "access": {
+ "maxLength": 280,
+ "type": "string"
+ },
+ "insideGates": {
+ "type": "boolean"
+ },
+ "kind": {
+ "enum": [
+ "station",
+ "tourist",
+ "rally",
+ "michi_no_eki"
+ ],
+ "type": "string"
+ },
+ "openingHours": {
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "author": {
+ "additionalProperties": false,
+ "description": "Shown as \"Discovered by @handle\" next to the source.",
+ "properties": {
+ "handle": {
+ "description": "Username of whoever added the place; null if imported or anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "category": {
+ "const": "stamp",
+ "type": "string"
+ },
+ "confirmCount": {
+ "description": "Votes that the place still exists.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmVoteUntil": {
+ "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmation": {
+ "additionalProperties": false,
+ "description": "Whether the Ippuku community has confirmed the place recently.",
+ "properties": {
+ "at": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
+ },
+ "bonusPoints": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Points for confirming it while open."
+ },
+ "mineAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Own valid confirmation (exact time); null without sign-in."
+ },
+ "open": {
+ "description": "No confirmation in the last 12 months.",
+ "type": "boolean"
+ },
+ "until": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day until which the place counts as confirmed (at plus 12 months)."
+ }
+ },
+ "required": [
+ "at",
+ "until",
+ "open",
+ "bonusPoints",
+ "mineAt"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataset": {
+ "additionalProperties": false,
+ "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
+ "properties": {
+ "credit": {
+ "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
+ "type": "string"
+ },
+ "license": {
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "description": "Short name, e.g. \"Public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "publisher": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "publishers": {
+ "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The value of `source` on its places.",
+ "type": "string"
+ },
+ "title": {
+ "additionalProperties": false,
+ "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "description": "Where the dataset is published.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "name",
+ "title",
+ "license",
+ "url",
+ "credit",
+ "publisher",
+ "publishers"
+ ],
+ "type": "object"
+ },
+ "fieldOrigins": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "enum": [
+ "source",
+ "community"
+ ],
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
+ },
+ "i18n": {
+ "additionalProperties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "enum": [
+ "name",
+ "operator",
+ "access",
+ "openingHours"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "description": "English versions of the Japanese texts of an imported place, by language (only en so far): name, and from attrs operator, access and openingHours. From OpenStreetMap (name:en) where it has one, otherwise machine-translated. Only the keys that have a version; absent if there is none. Show it instead of the Japanese text to readers of other languages, and keep the original visible.",
+ "propertyNames": {
+ "enum": [
+ "en"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "myVote": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm",
+ "reject"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nameJa": {
+ "description": "Japanese name, if different.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": {
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The OpenStreetMap object, for places from OSM."
+ },
+ "pendingPhotos": {
+ "description": "Own photos waiting for review; always empty without sign-in.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Needs the session; the preview is at url + \"/preview\".",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "photos": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
+ "properties": {
+ "handle": {
+ "description": "Username of the photographer; null if anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "license": {
+ "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
+ "enum": [
+ "cc_by_4_0",
+ "none"
+ ],
+ "type": "string"
+ },
+ "mine": {
+ "description": "Uploaded by the signed-in user; always false without sign-in.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url",
+ "author",
+ "license",
+ "mine"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "publisher": {
+ "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
+ "type": "string"
+ },
+ "rejectCount": {
+ "description": "Votes that the place is gone.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "rev": {
+ "description": "Revision; higher is newer.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "source": {
+ "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
+ "type": "string"
+ },
+ "status": {
+ "description": "active, or removed after users reported it gone. The others only for its author and admins.",
+ "enum": [
+ "active",
+ "removed",
+ "pending",
+ "rejected",
+ "hidden"
+ ],
+ "type": "string"
+ },
+ "thankedToday": {
+ "type": "boolean"
+ },
+ "thanks": {
+ "description": "Thanks the place received.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "lat",
+ "lon",
+ "name",
+ "nameJa",
+ "source",
+ "osm",
+ "status",
+ "confirmCount",
+ "rejectCount",
+ "createdAt",
+ "updatedAt",
+ "rev",
+ "category",
+ "attrs",
+ "author",
+ "altitude",
+ "fieldOrigins",
+ "photos",
+ "myVote",
+ "confirmation",
+ "pendingPhotos",
+ "mine",
+ "thanks",
+ "thankedToday"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "altitude": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accuracy": {
+ "description": "Reported vertical accuracy in meters.",
+ "type": "number"
+ },
+ "meters": {
+ "description": "Height above the WGS84 ellipsoid, not above sea level.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "meters",
+ "accuracy"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Measured by the device of whoever added the place, there; null if unknown."
+ },
+ "attrs": {
+ "additionalProperties": false,
+ "properties": {
+ "indoor": {
+ "type": "boolean"
+ },
+ "insideGates": {
+ "type": "boolean"
+ },
+ "payment": {
+ "items": {
+ "enum": [
+ "cash",
+ "ic_card",
+ "e_money",
+ "credit_card",
+ "qr"
+ ],
+ "type": "string"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "sizes": {
+ "items": {
+ "enum": [
+ "small",
+ "medium",
+ "large",
+ "extra_large"
+ ],
+ "type": "string"
+ },
+ "maxItems": 4,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "author": {
+ "additionalProperties": false,
+ "description": "Shown as \"Discovered by @handle\" next to the source.",
+ "properties": {
+ "handle": {
+ "description": "Username of whoever added the place; null if imported or anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "category": {
+ "const": "coin_locker",
+ "type": "string"
+ },
+ "confirmCount": {
+ "description": "Votes that the place still exists.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmVoteUntil": {
+ "description": "Until when the latest vote that the place still exists counts. Unix milliseconds; day only (12:00 Japan time). Absent without such a vote.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "confirmation": {
+ "additionalProperties": false,
+ "description": "Whether the Ippuku community has confirmed the place recently.",
+ "properties": {
+ "at": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day of the last entry, edit or confirmation in Ippuku (imports do not count)."
+ },
+ "bonusPoints": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Points for confirming it while open."
+ },
+ "mineAt": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Own valid confirmation (exact time); null without sign-in."
+ },
+ "open": {
+ "description": "No confirmation in the last 12 months.",
+ "type": "boolean"
+ },
+ "until": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Day until which the place counts as confirmed (at plus 12 months)."
+ }
+ },
+ "required": [
+ "at",
+ "until",
+ "open",
+ "bonusPoints",
+ "mineAt"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "dataset": {
+ "additionalProperties": false,
+ "description": "The dataset the place comes from, with the name, credit and license to show with it; absent for osm and user.",
+ "properties": {
+ "credit": {
+ "description": "How the publisher asks to be credited, in its own language (e.g. \"京都市オープンデータ\"); its Japanese name where it asks for nothing else. Show it with the place.",
+ "type": "string"
+ },
+ "license": {
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "description": "Short name, e.g. \"Public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "publisher": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "publishers": {
+ "description": "Only the wards or cities that supply the places of this response (`publisher` on a place).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "description": "Japanese local government code.",
+ "type": "string"
+ },
+ "name": {
+ "additionalProperties": false,
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "code",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "description": "The value of `source` on its places.",
+ "type": "string"
+ },
+ "title": {
+ "additionalProperties": false,
+ "description": "Full name, e.g. \"City of Kyoto public toilet list\".",
+ "properties": {
+ "de": {
+ "type": "string"
+ },
+ "en": {
+ "type": "string"
+ },
+ "es": {
+ "type": "string"
+ },
+ "fr": {
+ "type": "string"
+ },
+ "ja": {
+ "type": "string"
+ },
+ "ko": {
+ "type": "string"
+ },
+ "zh-Hans": {
+ "type": "string"
+ },
+ "zh-Hant": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "en",
+ "ja",
+ "de",
+ "ko",
+ "zh-Hans",
+ "zh-Hant",
+ "fr",
+ "es"
+ ],
+ "type": "object"
+ },
+ "url": {
+ "description": "Where the dataset is published.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "name",
+ "title",
+ "license",
+ "url",
+ "credit",
+ "publisher",
+ "publishers"
+ ],
+ "type": "object"
+ },
+ "fieldOrigins": {
+ "anyOf": [
+ {
+ "additionalProperties": {
+ "enum": [
+ "source",
+ "community"
+ ],
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For imported places: where each field comes from, source (see source) or community (changed by Ippuku users). Keys: name, nameJa, position, attrs.<attribute>. null for places added by users."
+ },
+ "i18n": {
+ "additionalProperties": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "enum": [
+ "name",
+ "operator",
+ "access",
+ "openingHours"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "description": "English versions of the Japanese texts of an imported place, by language (only en so far): name, and from attrs operator, access and openingHours. From OpenStreetMap (name:en) where it has one, otherwise machine-translated. Only the keys that have a version; absent if there is none. Show it instead of the Japanese text to readers of other languages, and keep the original visible.",
+ "propertyNames": {
+ "enum": [
+ "en"
+ ],
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lat": {
+ "type": "number"
+ },
+ "lon": {
+ "type": "number"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "myVote": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm",
+ "reject"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Always null without sign-in. An own confirmation older than 12 months is open again (null)."
+ },
+ "name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "nameJa": {
+ "description": "Japanese name, if different.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "type": {
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The OpenStreetMap object, for places from OSM."
+ },
+ "pendingPhotos": {
+ "description": "Own photos waiting for review; always empty without sign-in.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Needs the session; the preview is at url + \"/preview\".",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "photos": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "description": "Credit the photographer by this username when you show a photo under CC BY 4.0.",
+ "properties": {
+ "handle": {
+ "description": "Username of the photographer; null if anonymous.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "handle"
+ ],
+ "type": "object"
+ },
+ "createdAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "height": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "license": {
+ "description": "cc_by_4_0: Creative Commons Attribution 4.0, credit the photographer (author.handle). none: a photo showing a stamp impression as its main subject; its design belongs to the station or operator, not to the photographer. Not under a free license, shown in Ippuku only; do not reuse it.",
+ "enum": [
+ "cc_by_4_0",
+ "none"
+ ],
+ "type": "string"
+ },
+ "mine": {
+ "description": "Uploaded by the signed-in user; always false without sign-in.",
+ "type": "boolean"
+ },
+ "url": {
+ "description": "Relative to https://api.ippuku.app. At most 1600 px on the longer side. A preview with 720 px on the shorter side (same aspect ratio) is at url + \"/preview\"; show it in lists and thumbnails.",
+ "type": "string"
+ },
+ "width": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "width",
+ "height",
+ "createdAt",
+ "url",
+ "author",
+ "license",
+ "mine"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "publisher": {
+ "description": "Japanese local government code of the ward or city that published the place, where a dataset has several (tokyo_opendata). Its name is in the publishers of the dataset in GET /v1/regions; the license asks you to show it.",
+ "type": "string"
+ },
+ "rejectCount": {
+ "description": "Votes that the place is gone.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "rev": {
+ "description": "Revision; higher is newer.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "source": {
+ "description": "osm: OpenStreetMap (ODbL), user: Ippuku users, anything else: the id of a dataset, a list published by a city (for example kyoto_city_toilets). Name, publisher, license and page of each dataset are in GET /v1/regions; the license asks you to show them.",
+ "type": "string"
+ },
+ "status": {
+ "description": "active, or removed after users reported it gone. The others only for its author and admins.",
+ "enum": [
+ "active",
+ "removed",
+ "pending",
+ "rejected",
+ "hidden"
+ ],
+ "type": "string"
+ },
+ "thankedToday": {
+ "type": "boolean"
+ },
+ "thanks": {
+ "description": "Thanks the place received.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "description": "Unix milliseconds; day only (12:00 Japan time).",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "lat",
+ "lon",
+ "name",
+ "nameJa",
+ "source",
+ "osm",
+ "status",
+ "confirmCount",
+ "rejectCount",
+ "createdAt",
+ "updatedAt",
+ "rev",
+ "category",
+ "attrs",
+ "author",
+ "altitude",
+ "fieldOrigins",
+ "photos",
+ "myVote",
+ "confirmation",
+ "pendingPhotos",
+ "mine",
+ "thanks",
+ "thankedToday"
+ ],
+ "type": "object"
+ }
+]