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.

Last updated

Was this helpful?