# SET\_GPS

The **SET\_GPS** command updates the device’s current location using latitude and longitude coordinates.

This allows Drizz to simulate any geographic position—crucial for apps that rely on delivery zones, maps, geo-restrictions, or location-based experiences.

**Syntax:** SET\_GPS(latitude=\<value>, longitude=\<value>)

**Importance of Latitude & Longitude**

1. Latitude represents the north–south position
2. Longitude represents the east–west position
3. Both must be precise to ensure correct map placement
4. Even minor deviations can change the pickup/drop-off point, delivery coverage, or available services
5. Many apps calculate features (ETA, pricing, distance, availability) based on these coordinates

**When to use:**

1. Testing location-based apps
2. Simulating pickup/drop-off points
3. Checking geo-specific features (store availability, delivery coverage)

**Example:**

SET\_GPS(latitude=12.9716, longitude=77.5946)

### Best Practices for SET\_GPS

1. Always use precise latitude and longitude values\
   Small deviations may shift location markers, affect delivery availability, or alter routing results.
2. Maintain the correct order: latitude first, longitude second\
   Example: **SET\_GPS**(latitude=12.9716, longitude=77.5946)
3. Use real-world coordinates for consistent testing

> Prefer actual pin-drop coordinates from Google Maps instead of approximations.


---

# Agent Instructions: 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:

```
GET https://docs.drizz.dev/commands-reference/system-command/set_gps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
