Created
August 21, 2024 07:11
-
-
Save elct9620/bed037ec732d2f5d835220f3953db522 to your computer and use it in GitHub Desktop.
Google Places API v2 Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Generated schema for Root", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"id": { | |
"type": "string" | |
}, | |
"display_name": { | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string" | |
}, | |
"language_code": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"text", | |
"language_code" | |
] | |
}, | |
"types": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"primary_type": { | |
"type": "string" | |
}, | |
"primary_type_display_name": { | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string" | |
}, | |
"language_code": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"text", | |
"language_code" | |
] | |
}, | |
"national_phone_number": { | |
"type": "string" | |
}, | |
"international_phone_number": { | |
"type": "string" | |
}, | |
"formatted_address": { | |
"type": "string" | |
}, | |
"short_formatted_address": { | |
"type": "string" | |
}, | |
"address_components": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"long_text": { | |
"type": "string" | |
}, | |
"short_text": { | |
"type": "string" | |
}, | |
"types": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"language_code": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"long_text", | |
"short_text", | |
"types", | |
"language_code" | |
] | |
} | |
}, | |
"plus_code": { | |
"type": "object", | |
"properties": { | |
"global_code": { | |
"type": "string" | |
}, | |
"compound_code": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"global_code", | |
"compound_code" | |
] | |
}, | |
"location": { | |
"type": "object", | |
"properties": { | |
"latitude": { | |
"type": "number" | |
}, | |
"longitude": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"latitude", | |
"longitude" | |
] | |
}, | |
"viewport": { | |
"type": "object", | |
"properties": { | |
"low": { | |
"type": "object", | |
"properties": { | |
"latitude": { | |
"type": "number" | |
}, | |
"longitude": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"latitude", | |
"longitude" | |
] | |
}, | |
"high": { | |
"type": "object", | |
"properties": { | |
"latitude": { | |
"type": "number" | |
}, | |
"longitude": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"latitude", | |
"longitude" | |
] | |
} | |
}, | |
"required": [ | |
"low", | |
"high" | |
] | |
}, | |
"rating": { | |
"type": "number" | |
}, | |
"google_maps_uri": { | |
"type": "string" | |
}, | |
"website_uri": { | |
"type": "string" | |
}, | |
"reviews": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"relative_publish_time_description": { | |
"type": "string" | |
}, | |
"text": { | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string" | |
}, | |
"language_code": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"text", | |
"language_code" | |
] | |
}, | |
"original_text": { | |
"type": "object", | |
"properties": { | |
"text": { | |
"type": "string" | |
}, | |
"language_code": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"text", | |
"language_code" | |
] | |
}, | |
"rating": { | |
"type": "number" | |
}, | |
"author_attribution": { | |
"type": "object", | |
"properties": { | |
"display_name": { | |
"type": "string" | |
}, | |
"uri": { | |
"type": "string" | |
}, | |
"photo_uri": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"display_name", | |
"uri", | |
"photo_uri" | |
] | |
}, | |
"publish_time": { | |
"type": "object", | |
"properties": { | |
"seconds": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"seconds" | |
] | |
} | |
}, | |
"required": [ | |
"name", | |
"relative_publish_time_description", | |
"text", | |
"original_text", | |
"rating", | |
"author_attribution", | |
"publish_time" | |
] | |
} | |
}, | |
"regular_opening_hours": { | |
"type": "object", | |
"properties": { | |
"open_now": { | |
"type": "boolean" | |
}, | |
"periods": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"open": { | |
"type": "object", | |
"properties": { | |
"day": { | |
"type": "number" | |
}, | |
"hour": { | |
"type": "number" | |
}, | |
"minute": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"day", | |
"hour", | |
"minute" | |
] | |
}, | |
"close": { | |
"type": "object", | |
"properties": { | |
"day": { | |
"type": "number" | |
}, | |
"hour": { | |
"type": "number" | |
}, | |
"minute": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"day", | |
"hour", | |
"minute" | |
] | |
} | |
}, | |
"required": [ | |
"open", | |
"close" | |
] | |
} | |
}, | |
"weekday_descriptions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
} | |
}, | |
"required": [ | |
"open_now", | |
"periods", | |
"weekday_descriptions" | |
] | |
}, | |
"utc_offset_minutes": { | |
"type": "number" | |
}, | |
"photos": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"width_px": { | |
"type": "number" | |
}, | |
"height_px": { | |
"type": "number" | |
}, | |
"author_attributions": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"display_name": { | |
"type": "string" | |
}, | |
"uri": { | |
"type": "string" | |
}, | |
"photo_uri": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"display_name", | |
"uri", | |
"photo_uri" | |
] | |
} | |
} | |
}, | |
"required": [ | |
"name", | |
"width_px", | |
"height_px", | |
"author_attributions" | |
] | |
} | |
}, | |
"adr_format_address": { | |
"type": "string" | |
}, | |
"business_status": { | |
"type": "number" | |
}, | |
"user_rating_count": { | |
"type": "number" | |
}, | |
"icon_mask_base_uri": { | |
"type": "string" | |
}, | |
"icon_background_color": { | |
"type": "string" | |
}, | |
"current_opening_hours": { | |
"type": "object", | |
"properties": { | |
"open_now": { | |
"type": "boolean" | |
}, | |
"periods": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"open": { | |
"type": "object", | |
"properties": { | |
"day": { | |
"type": "number" | |
}, | |
"hour": { | |
"type": "number" | |
}, | |
"minute": { | |
"type": "number" | |
}, | |
"date": { | |
"type": "object", | |
"properties": { | |
"year": { | |
"type": "number" | |
}, | |
"month": { | |
"type": "number" | |
}, | |
"day": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"year", | |
"month", | |
"day" | |
] | |
} | |
}, | |
"required": [ | |
"day", | |
"hour", | |
"minute", | |
"date" | |
] | |
}, | |
"close": { | |
"type": "object", | |
"properties": { | |
"day": { | |
"type": "number" | |
}, | |
"hour": { | |
"type": "number" | |
}, | |
"minute": { | |
"type": "number" | |
}, | |
"date": { | |
"type": "object", | |
"properties": { | |
"year": { | |
"type": "number" | |
}, | |
"month": { | |
"type": "number" | |
}, | |
"day": { | |
"type": "number" | |
} | |
}, | |
"required": [ | |
"year", | |
"month", | |
"day" | |
] | |
} | |
}, | |
"required": [ | |
"day", | |
"hour", | |
"minute", | |
"date" | |
] | |
} | |
}, | |
"required": [ | |
"open", | |
"close" | |
] | |
} | |
}, | |
"weekday_descriptions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
} | |
}, | |
"required": [ | |
"open_now", | |
"periods", | |
"weekday_descriptions" | |
] | |
}, | |
"accessibility_options": { | |
"type": "object", | |
"properties": { | |
"wheelchair_accessible_parking": { | |
"type": "boolean" | |
}, | |
"wheelchair_accessible_entrance": { | |
"type": "boolean" | |
} | |
}, | |
"required": [ | |
"wheelchair_accessible_parking", | |
"wheelchair_accessible_entrance" | |
] | |
} | |
}, | |
"required": [ | |
"name", | |
"id", | |
"display_name", | |
"types", | |
"primary_type", | |
"primary_type_display_name", | |
"national_phone_number", | |
"international_phone_number", | |
"formatted_address", | |
"short_formatted_address", | |
"address_components", | |
"plus_code", | |
"location", | |
"viewport", | |
"rating", | |
"google_maps_uri", | |
"website_uri", | |
"reviews", | |
"regular_opening_hours", | |
"utc_offset_minutes", | |
"photos", | |
"adr_format_address", | |
"business_status", | |
"user_rating_count", | |
"icon_mask_base_uri", | |
"icon_background_color", | |
"current_opening_hours", | |
"accessibility_options" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment