Get Stadium Name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trader174.
    Junior Member
    • Feb 2013
    • 4

    #1

    Get Stadium Name

    Hello!
    How i can get a stadium name for greyhound racing?
    I use market catalogue.
    marketCatalogueResult.get(i).getMarketName() gave me only class and distance information (A8 480m). But i need a stadium too.
    thanks for your reply
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    There's a venue on the relevant Event record that might suffice. Here's a listEvents call and result I just did:

    "filter":{"eventTypeIds": ["4339"]}

    {"jsonrpc":"2.0","result":[
    {"event":{"id":"27996970","name":"Henl (FC) 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Henlow","openDate":"2016-10-30T18:30:00.000Z"},"marketCount":8},
    {"event":{"id":"27997096","name":"CPark 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Central Park","openDate":"2016-10-30T18:11:00.000Z"},"marketCount":14},
    {"event":{"id":"131493","name":"ANTEPOST","country Code":"GB","timezone":"Europe/London","openDate":"2014-01-01T00:00:00.000Z"},"marketCount":5},
    {"event":{"id":"27640092","name":"Trap challenge","countryCode":"GB","timezone":"Europe/London","openDate":"2016-10-31T18:28:00.000Z"},"marketCount":2},
    {"event":{"id":"27997266","name":"Henl (AvB) 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Henlow","openDate":"2016-10-30T18:30:00.000Z"},"marketCount":8},
    {"event":{"id":"27998263","name":"Henl Without Favs","countryCode":"GB","timezone":"Europe/London","venue":"Henlow","openDate":"2016-10-30T18:30:00.000Z"},"marketCount":1},
    {"event":{"id":"27996967","name":"Henl 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Henlow","openDate":"2016-10-30T18:30:00.000Z"},"marketCount":16},
    {"event":{"id":"27997191","name":"CPark (FC) 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Central Park","openDate":"2016-10-30T18:11:00.000Z"},"marketCount":7},
    {"event":{"id":"27997190","name":"Poole (FC) 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Poole","openDate":"2016-10-30T18:04:00.000Z"},"marketCount":7},
    {"event":{"id":"27997094","name":"Poole 30th Oct","countryCode":"GB","timezone":"Europe/London","venue":"Poole","openDate":"2016-10-30T18:04:00.000Z"},"marketCount":14}],"id":1}

    Comment

    • trader174.
      Junior Member
      • Feb 2013
      • 4

      #3
      I found mistake. If you need to get venue, you must add enum "MarketProjection.EVENT" in marketProjection

      Example:
      marketProjection.add(MarketProjection.EVENT);

      Comment

      Working...
      X