Frameworks
Node.js
Reverse geocoding with built-in fetch, and the quota headers.
Example
reverse.mjsmjs
1// Node.js 18+ (built-in fetch) — reverse geocoding2const res = await fetch(3 "https://orviamaps.ir/api/v1/reverse?lat=35.6997&lon=51.3380",4 { headers: { Authorization: `Bearer ${process.env.ORVIA_API_KEY}` } }5);67if (!res.ok) throw new Error(`Orvia ${res.status}`);89const { result } = await res.json();10console.log(result.name, `${result.distanceKm} km away`);11console.log("Requests left:", res.headers.get("X-Orvia-Quota-Remaining"));Replace YOUR_API_KEY with a key from your account, or read it from an environment variable as shown.