> For the complete documentation index, see [llms.txt](https://docs.mapakalamidad.ph/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mapakalamidad.ph/routes/infrastructure.md).

# Imprastraktura

Ang mga lokasyon ng lokal na imprastraktura kabilang ang mga flood gates, bomba at daanan ng tubig.

## Format ng Kahilingan

| URL Parameter | Paglalarawan                                                                                    | Format | Required |
| ------------- | ----------------------------------------------------------------------------------------------- | ------ | -------- |
| type          | Anong uri ng imprastraktura ang nais naming ilista?  (isa sa`floodgates`, `pumps`, `waterways`) | String | Yes      |

| Query Parameter | Paglalarawan                                                                                                                            | Format | Required |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------ | -------- |
| city            | Aling lungsod ang nais nating ibalik ang mga imprastraktura? (isa sa `bdg`, `jbd`, `sby`)                                               | String | No       |
| format          | Aling format ang dapat nating ibalik? (isa sa `json`, defaults to `json`)                                                               | String | No       |
| geoformat       | Anong format ang dapat gamitin ng geographic results o ang resulta sa heyograpiya (isa sa `topojson`, `geojson` defaults to `topojson`) | String | No       |

## KUMUHA /infrastructure/:type

Ibalik ang isang listahan ng mga bomba sa Quezon CIty at Pampanga.&#x20;

```
curl "https://data.petabencana.id/infrastructure/pumps?city=jbd"
```

Ang mga resulta ay ang mga sumusnod:

```javascript
{
  "statusCode": 200,
  "result": {
    "type": "Topology",
    "objects": {
      "output": {
        "type": "GeometryCollection",
        "geometries": [
          {
            "type": "Point",
            "properties": {
              "name": "PA Marina"
            },
            "coordinates": [
              7164,
              7352,
              0
            ]
          },
          {
            "type": "Point",
            "properties": {
              "name": "Pompa Waduk Setia Budi Barat"
            },
            "coordinates": [
              5312,
              5077,
              0
            ]
          },
          // etc. etc. //
          {
            "type": "Point",
            "properties": {
              "name": "Pompa UP Senen"
            },
            "coordinates": [
              6143,
              6544,
              0
            ]
          }
        ]
      }
    },
    "arcs": [],
    "transform": {
      "scale": [
        0.000020651319451945148,
        0.000020217245084508508
      ],
      "translate": [
        106.7188310623,
        -6.3060956581
      ]
    },
    "bbox": [
      106.7188310623,
      -6.3060956581,
      106.9253236055,
      -6.1039434245
    ]
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mapakalamidad.ph/routes/infrastructure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
