2022-10-21 17:16:00 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [Singularity ](./bitburner.singularity.md ) > [travelToCity ](./bitburner.singularity.traveltocity.md )
## Singularity.travelToCity() method
Travel to another city.
2023-02-11 19:18:50 +01:00
**Signature:**
2022-10-21 17:16:00 +02:00
```typescript
2022-12-30 02:28:53 +01:00
travelToCity(city: CityName | `${CityName}` ): boolean;
2022-10-21 17:16:00 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2022-12-30 02:28:53 +01:00
| city | [CityName ](./bitburner.cityname.md ) \| \`${[CityName](./bitburner.cityname.md)<!-- --> }\` | City to travel to. |
2022-10-21 17:16:00 +02:00
2023-02-11 19:18:50 +01:00
**Returns:**
2022-10-21 17:16:00 +02:00
boolean
True if action is successful, false otherwise.
## Remarks
RAM cost: 2 GB \* 16/4/1
This function allows the player to travel to any city. The cost for using this function is the same as the cost for traveling through the Travel Agency.