> ## Documentation Index
> Fetch the complete documentation index at: https://pathway.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Extracted Geometry

This document explains how to extract and utilize geometry data from routing responses, which is crucial for applications involving map rendering or advanced analytics.

## Understanding Geometry Data

Geometry data in routing responses typically represents the physical path of a route. It is often provided as an encoded polyline format.

## Extracting Geometry

When you receive a routing response, the geometry data can be found within the `routes` array. Here's an example of how to extract this data:

```javascript theme={null}
// Assuming `response` is the result from a routing API call
const routes = response.data.routes;
routes.forEach((route, index) => {
  console.log(`Route ${index + 1} Geometry:`, route.geometry);
});
```
