Documentation menu
Docs / Cookbook / Find planned projects within range of a location

Find planned projects within range of a location

Surface upcoming capital work around a branch, depot or job site so you can plan coverage before the work goes to tender.

curl --request GET \
  --url 'https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50' \
  --header 'X-API-Key: YOUR_API_KEY'
import requests

url = "https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50"
headers = {"X-API-Key": "YOUR_API_KEY"}
resp = requests.get(url, headers=headers)
print(resp.json())
const res = await fetch("https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50", {
  headers: {
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await res.json();
console.log(data);
<?php
$ch = curl_init("https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "X-API-Key: YOUR_API_KEY",
]);
echo curl_exec($ch);
require "net/http"
require "uri"

uri = URI("https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50")
req = Net::HTTP::Get.new(uri)
req["X-API-Key"] = "YOUR_API_KEY"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |h| h.request(req) }
puts res.body
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50", nil)
    req.Header.Add("X-API-Key", "YOUR_API_KEY")
    res, _ := http.DefaultClient.Do(req)
    defer res.Body.Close()
    body, _ := io.ReadAll(res.Body)
    fmt.Println(string(body))
}
import java.net.URI;
import java.net.http.*;

HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://api.builddata.ca/major_project?status=proposed&lat=49.2827&lng=-123.1207&radius_km=25&sort_by=value&sort_order=desc&limit=50"))
    .header("X-API-Key", "YOUR_API_KEY")
    .build();
HttpResponse<String> res = HttpClient.newHttpClient()
    .send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());

radius_km maxes out at 25. Projects sourced from an inventory that publishes no street address carry a city-level coordinate, flagged as geocode_precision=city, so treat those as in-the-city rather than at-the-point.

Ready to build?Create a free key and start calling BuildData in minutes. No card required.
Get your API key →