bookwhen / opendata

Documentation, Changelog and Issues related to the Bookwhen RPDE endpoint
0 stars 1 forks source link

Events with no offers #4

Closed alza-bitz closed 6 years ago

alza-bitz commented 7 years ago

Hi there, I downloaded your data and ran a query to see the distribution of offer count per item, this is what I got:

[alex@deneb 2017-10-06T14:15:00Z]$ cd ~/Projects
[alex@deneb 2017-10-06T14:15:00Z]$ git clone https://github.com/imin-ltd/rpde-scripts.git
[alex@deneb 2017-10-06T14:15:00Z]$ cd ~/Projects/rpde-scripts
[alex@deneb 2017-10-06T14:15:00Z]$ mkdir -p provider/bookwhen/2017-10-06T14:15:00Z
[alex@deneb 2017-10-06T14:15:00Z]$ cd provider/bookwhen/2017-10-06T14:15:00Z
[alex@deneb 2017-10-06T14:15:00Z]$ pwd
/home/alex/Projects/rpde-scripts/provider/bookwhen/2017-10-06T14:15:00Z
[alex@deneb 2017-10-06T14:15:00Z]$ ../../../walk-rpde.sh https://bookwhen.com/api/openactive/event_types

...wait...

[alex@deneb 2017-10-06T14:15:00Z]$ jq -s '[.[].items[] | 
select(.state == "updated") | {numOffers: (.data.offer | length)}] |
 group_by(.numOffers) | 
[.[] | {numOffers: unique | .[].numOffers, count: length}]' rpde-*.json
[
  {
    "numOffers": 0,
    "count": 27
  },
  {
    "numOffers": 1,
    "count": 116
  },
  {
    "numOffers": 2,
    "count": 164
  },
  {
    "numOffers": 3,
    "count": 348
  },
  {
    "numOffers": 4,
    "count": 1
  },
  {
    "numOffers": 6,
    "count": 1
  }
]

Can you tell me, if an item has no offers (I counted 27), what does this mean? Does it mean the price is "free", or just that the price is unknown?

Thanks!

jopotts commented 6 years ago

If an offer is a ticket type that can be selected, then if there currently aren't any offers for an event then it might mean that none of the tickets are currently available. For example the event might be today, and tickets can only be selected a day before. Early bird type tickets would be the same.