Skip to content

Entity data model

Entity

Key Value Type Example
id string
name string
address Address
distance int in meters
eta string "2019-10-10T16:00:01Z", destination time zone calculated
ete int in seconds
time_zone string "America/Los Angeles"
open_hours OpenHours
phone_numbers string array
rating Rating
ordering_supported boolean whether this store support reservation or order, for example, parkopedia support reservation
commerce_location_id string location id for food order

Address

Key Value Type Example
formatted_address string
geo_coordinates Position
nav_coordinates Position follow EntityService definition

Position

Key Value Type
lat double
lon double

OpenHours

Key Value Type Example
summary string for display, "summary": "Sun,Mon,Tue,Wed,Thu,Fri,Sat:00:00-23:59"
hours array Hour[] "hours": [ {
"days": [ 7, 1, 2, 3, 4, 5, 6 ],
"periods": [ { "start": "00:00", "end": "23:59" } ]
} ]

Rating

Key Value Type Example
average double 2.0
max double 5.0
count int 64

Examples:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
    { 
        "id": "<string_value>",
        "name": "<string_value>",
        "address":
        {
               "formatted_address": <string_value>,
               "geo_coordinates": { 
                   "lat": <double_value>, 
                   "lon": <double_value> 
               }, 
              "nav_coordinates":[ { 
                   "lat": <double_value>, 
                   "lon": <double_value> 
               }]
            }
            "distance": int,  // optional, in meters
            "eta" : <string_value>, // optional, the destination time zone, in format of "2019-10-10T16:00:01Z"
            "open_hours" : <string value>, // optional, summary info
            "time_zone": <string value>,
            "phone_numbers" : <string array>// optional
    }