Regional Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • primal100
    Junior Member
    • Sep 2014
    • 1

    #1

    Regional Data

    Hi,

    Part of my application has a treeview navigation menu. Ideally, it would match the Betfair website as closely as possible.

    The application loads with event types, when the user clicks one, it loads countries according to event types, then when a country is clicked it loads competitions with event type and country filter; and so on.

    The API is cool to work with but I'm having some issues:

    1) In the listCompetition result, competitionRegion contains International, but the listCountries result doesn't. Competitions can't be searched for via International as the country; and international competitions are sometimes returned with various countries. I have to add International to the list of countries; then when the user selects International, all competitions belonging to the event type are downloaded; and then my application filters these for competitionRegion: International. When a country is selected, International events are fitered out. It's a lot of extra code and data downloaded. Would be nice if the listCountries result matched up exactly with the competitionRegions.

    2) For Football, Great Britain should be split up into England, Wales, Scotland and Northern Ireland. Not anything political, but in footballing terms they are separate countries and they are separate on the Betfair website. I can't think of a workaround for this without going through every competition individually. I feel like I'm missing something with regard to this!

    3) Serbia has the alpha-2 ISO code CS and alpha-3 ISO code SCG, both of which actually refer to the former "Serbia and Montenegro" and so goes unrecognised by 3rd party libraries. The correct ISO codes for Serbia are RS and SRB

    http://en.wikipedia.org/wiki/Country_codes_of_Serbia

    4) All these problems could be solved if there was a way of returning the same list as when an event type is clicked on the Betfair website. For example when Football is clicked; you see "English Football", "Estonian Football", "Euro 2016", etc in the same list.

    Cheers for reading!
    Last edited by primal100; 26-09-2014, 10:03 AM.
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Although I haven't used it personally, I think you are supposed to use the Navigation Data (see https://api.developer.betfair.com/se...r+Applications) to help build your treelist.

    Comment

    Working...
    X