Carto Super Camp
✓ Published0🌍 Public
Aandrewbt
Last edited Aug 19, 2016
Created on Aug 18, 2016
This example demonstrates how to chain multiple CARTO SQL API requests into a single workflow to plan a hypothetical free-ticket flight from CARTO HQ in Brooklyn to a Pennsylvania airport. It first geocodes the HQ address, creates a 2.5-hour driving isoline, intersects that with Pennsylvania airports, and routes to the nearest reachable airport. The code uses `cdb_geocode_street_point`, `cdb_isochrone`, `ST_Contains`, and `cdb_route_point_to_point` to build the route, then calls `cdb_cartodbfytable` to prepare the resulting tables for mapping.
AI-generated description