# Calculate routing summary

To use [Text Search (New)](https://developers.google.com/maps/documentation/places/ios-sdk/text-search.md.txt) or [Nearby Search (New)](https://developers.google.com/maps/documentation/places/ios-sdk/nearby-search.md.txt)
to calculate the travel duration and distance to each place in the response:

## Use Text Search (New)

> [!NOTE]
> **Note:** The response only contains the `duration` and `distanceMeters` to each place. It does not contain the actual route itself. To calculate the route, use the Routes API, passing to it the origin and location of the destination place.

## Use Nearby Search

In this example, you calculate the travel duration and distance to each place in
the Nearby Search response. This example searches for restaurants in Sydney,
Australia and sets the location restriction and the routing origin to the same
latitude and longitude coordinate:

## Specify travel options

By default, the duration and distance calculations are for a car. However, you
can control the vehicle type, as well as other options, in the search.

In the next example, you specify the travel mode as `DRIVE` and to avoid
highways: