Many sites include a list of upcoming events near the visitor based on geolocation of the visitor’s IP address. The Events / Index endpoint accepts several different options for location but the recommended one is to send lat
and lon
of the visitor along with a within
radius for the venues.
Upcoming Events within 20 miles of Las Vegas via cURL
curl -i \ -X GET \ -H "X-Signature: 5tsKHA+v8xm3HPPqcG9rNhu7+GqYB4N77tTk7tr/FKQ=" \ -H "X-Token: SabreHackathon:TTX2017LasVegasNV" \ --url 'https://api.sandbox.ticketevolution.com/v9/events?lat=36.1207804&lon=-115.156559&order_by=events.occurs_at&page=1&per_page=10&within=20'
Events within 20 miles of Las Vegas using ticketevolution-php
$response = $client->listEvents([ 'page => 1, 'per_page => 10, 'lat => 36.1207804, 'lon => -115.156559, 'within => 20, 'order_by' => 'events.occurs_at', ]));
Events within 20 miles of Las Vegas using ticketevolution-ruby
@event = @connection.events.list({ 'page => 1, 'per_page => 10, 'lat => 36.1207804, 'lon => -115.156559, 'within => 20, 'order_by' => 'events.occurs_at', })
Previous: Comprehensive Search
Next: Performer Landing Pages