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
Latitude represents the north–south position
Longitude represents the east–west position
Both must be precise to ensure correct map placement
Even minor deviations can change the pickup/drop-off point, delivery coverage, or available services
Many apps calculate features (ETA, pricing, distance, availability) based on these coordinates
When to use:
Testing location-based apps
Simulating pickup/drop-off points
Checking geo-specific features (store availability, delivery coverage)
Example:
SET_GPS(latitude=12.9716, longitude=77.5946)
Best Practices for SET_GPS
Always use precise latitude and longitude values Small deviations may shift location markers, affect delivery availability, or alter routing results.
Maintain the correct order: latitude first, longitude second Example: SET_GPS(latitude=12.9716, longitude=77.5946)
Use real-world coordinates for consistent testing
Prefer actual pin-drop coordinates from Google Maps instead of approximations.
Last updated
Was this helpful?