Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 568 Bytes

tilequery.md

File metadata and controls

12 lines (9 loc) · 568 Bytes

Tilequery

require "mapbox-sdk"
Mapbox.access_token = "YOUR_ACCESS_TOKEN"

tilequery = Mapbox::Tilequery.tilequery(mapid, {location}, radius, limit)

# Example: tilequery = Mapbox::Tilequery.tilequery("mapbox.mapbox-streets-v7", {"longitude" => -100, "latitude" => 38}, 0, 1)
# `Radius` refers to the approximate distance in meters to query for features. Defaults to  0 if left blank. Has no upper bound. Required for queries against point and line data. 
# `Limit` refers to the number of features between  1 - 50 to return. Defaults to  5 if left blank.