Crates.io | geoprox |
lib.rs | geoprox |
version | 0.1.0 |
source | src |
created_at | 2024-05-01 16:22:04.515567 |
updated_at | 2024-05-01 16:22:04.515567 |
description | A Geo-Proximity detection service for efficient real-time geo-aware contract pairing. Ideal for rideshare pairing services |
homepage | |
repository | https://github.com/ezrasingh/geoprox |
max_upload_size | |
id | 1226520 |
size | 72,054 |
A Geo-Proximity detection service for efficient real-time geo-aware contract pairing.
This is a service that allows you to determine which users are nearby a contract and can be applied to applications like Uber, Lyft, Grubhub.
Keep track of approximate location of riders
When order is placed should return set of drivers nearby the pickup location
# with cargo
cargo run -- --help
# or if you have just
just run
Method | Endpoint | Payload | Description |
---|---|---|---|
POST |
/rider/ |
{ uid: number, position: [number, number] } |
Place rider |
DELETE |
/rider/ |
{ uid: number } |
Remove rider |
POST |
/search/ |
{ distance: number, position: [number, number] } |
Search nearby riders |
Improve testing coverage
Determine horizontal scaling strategy
Add gRPC support and OpenAPI spec schema (w/ codegen)
Rename semantics to generalize the API conventions
Possibly handle internal queue state for riders (when active and not active)
Possibly leverage SSE for place_order
in case a rider is not found at first.