## Execute a PlazaQL query `$client->query->execute(string data, ?string format): FeatureCollection` **post** `/api/v1/query` Execute a PlazaQL query ### Parameters - `data: string` PlazaQL query string - `format?:optional string` Response format: json (default), geojson, csv, ndjson ### Returns - `FeatureCollection` - `list features` Array of GeoJSON Feature objects - `Type type` Always `FeatureCollection` ### Example ```php query->execute( data: '$$ = search(node, amenity: "cafe").around(distance: 500, geometry: point(48.8566, 2.3522));', format: 'format', ); var_dump($featureCollection); ``` #### Response ```json { "features": [ { "geometry": { "coordinates": [ 2.3522, 48.8566 ], "type": "Point" }, "properties": { "@id": "bar", "@type": "bar", "amenity": "bar", "cuisine": "bar", "name": "bar" }, "type": "Feature", "id": "node/21154906" } ], "type": "FeatureCollection" } ```