For Developers

The Golf Course Maps Db.

Build golf course maps in your app with our geodata API.

Optimized geodata on the top golf courses in the United States

Learn before your play with our golf course database. We've plotted every green, fairway and hazard for thousands of courses. Research courses before you play with interactive hole maps, photos, tips, stats and more.

Building a golf hole

11. Get all holes for a specific course 2 3awscurl --access_key **** --secret_key **** -X GET 4https://api.golfbert.com/v1/courses/4803/holes -H "x-api-key: ****" 5'Response code: 200' 6{ 7 "resources": [ 8 { 9 "id": 25506, 10 "number": 18, 11 "courseid": 4803, 12 "rotation": 2.04479566062, 13 "range": { 14 "x": { 15 "min": -122.2707111, 16 "max": -122.269083337 17 }, 18 "y": { 19 "min": 47.3838734109, 20 "max": 47.3896241104 21 } 22 }, 23 "dimensions": { 24 "width": 960, 25 "height": 960 26 }, 27 "vectors": [ 28 { 29 "type": "Flag", 30 "lat": 47.3893912619, 31 "long": -122.2692596912384 32 }, 33 { 34 "type": "Blue", 35 "lat": 47.3838734109, 36 "long": -122.269259691 37 }, 38 { 39 "type": "White", 40 "lat": 47.3843622628, 41 "long": -122.269388009 42 }, 43 { 44 "type": "Red", 45 "lat": 47.3850228683, 46 "long": -122.269657507 47 } 48 ], 49 "flagcoords": { 50 "lat": 47.38135479698122, 51 "long": -122.26435018374639 52 } 53 } 54 ] 55} 56 572. Get hole polygon information for specific hole 58 59awscurl --access_key **** --secret_key **** -X GET 60https://api.golfbert.com/v1/holes/25506/polygons -H "x-api-key: ***" 61'Response code: 200' 62{ 63 "resources": [ 64 { 65 "holeid": 25506, 66 "surfacetype": "Green", 67 "polygon": [ 68 { 69 "lat": 47.3814806732001, 70 "long": -122.26437270641327 71 }, 72 { 73 "lat": 47.38148793784317, 74 "long": -122.2643968462944 75 }, 76 { 77 "lat": 47.38148975400378, 78 "long": -122.26441696286201 79 }, 80 { 81 "lat": 47.38148793784317, 82 "long": -122.26443707942963 83 }, 84 { 85 "lat": 47.381483397441365, 86 "long": -122.26445451378822 87 }, 88 { 89 "lat": 47.38147340855601, 90 "long": -122.26447060704231 91 }, 92 { 93 "lat": 47.38145887926487, 94 "long": -122.26448804140091 95 }, 96 { 97 "lat": 47.381439809564135, 98 "long": -122.26449877023697 99 }, 100 { 101 "lat": 47.38142073985653, 102 "long": -122.26450279355049 103 }, 104 { 105 "lat": 47.38139531356897, 106 "long": -122.26449877023697 107 }, 108 { 109 "lat": 47.38136716302202, 110 "long": -122.26448267698288 111 }, 112 { 113 "lat": 47.38133356396243, 114 "long": -122.26447463035583 115 }, 116 { 117 "lat": 47.381290884045065, 118 "long": -122.26447463035583 119 }, 120 { 121 "lat": 47.38126182535814, 122 "long": -122.2644692659378 123 }, 124 { 125 "lat": 47.381238215163215, 126 "long": -122.26446121931076 127 }, 128 { 129 "lat": 47.38122550197696, 130 "long": -122.2644491493702 131 }, 132 { 133 "lat": 47.38121823729771, 134 "long": -122.2644317150116 135 }, 136 { 137 "lat": 47.38121188070257, 138 "long": -122.26439818739891 139 }, 140 { 141 "lat": 47.38120915644726, 142 "long": -122.26436868309975 143 }, 144 { 145 "lat": 47.38120915644726, 146 "long": -122.26433515548706 147 }, 148 { 149 "lat": 47.38121823729771, 150 "long": -122.26429894566536 151 }, 152 { 153 "lat": 47.38124003133243, 154 "long": -122.26424127817154 155 }, 156 { 157 "lat": 47.38126636577903, 158 "long": -122.26418629288673 159 }, 160 { 161 "lat": 47.38128725171007, 162 "long": -122.26415008306503 163 }, 164 { 165 "lat": 47.381299964881435, 166 "long": -122.26413533091545 167 }, 168 { 169 "lat": 47.38131540229967, 170 "long": -122.2641272842884 171 }, 172 { 173 "lat": 47.381340828625774, 174 "long": -122.26412996649742 175 }, 176 { 177 "lat": 47.38136171452732, 178 "long": -122.26414069533348 179 }, 180 { 181 "lat": 47.3813798761741, 182 "long": -122.2641621530056 183 }, 184 { 185 "lat": 47.381392589323156, 186 "long": -122.26419970393181 187 }, 188 { 189 "lat": 47.38140621055085, 190 "long": -122.26423993706703 191 }, 192 { 193 "lat": 47.38142618834512, 194 "long": -122.26429358124733 195 }, 196 { 197 "lat": 47.38146432774951, 198 "long": -122.26434588432312 199 }, 200 { 201 "lat": 47.3814806732001, 202 "long": -122.26437270641327 203 } 204 ] 205 } 206 ] 207}

Code Samples

See below for some examples on how to call data from the API.

In addition to these examples, check out any golf course to see what can be achieved with our golf course API.

Further Development

Once you are calling the API correctly and have some golf course maps in your app or website, the fun really starts. Here are some examples of what can achieved by developing with our maps geodata.

  • Check distances to / from any point on the hole
  • Distance to front, center, back of green
  • Distance from any tee box
  • Distance from the golfer's position via Location Services
  • Polygon checks: determine if the golfer's current position is inside a specific polygon: "Golfer's ball landed in the left rough"
  • Calculate statistics on course usage: "67.5% of drives ended up on the left side of the fairway"
  • Hole rotation: display hole maps green up, tee box down
  • Course layout: display entire course at once, or layout in a grid hole-by-hole
Need help? Contact us and weil assist you with anything you need.