rns-geo
Geolocation data over Reticulum
meshapi 0.1 ยท rnsgeo / query ยท path q
dest 2b20a86bfaf43c75810372dd73a53d1c
Geocoding, routing, snap-to-road and nearby-POI lookups over an authenticated Reticulum Link. Responses are trimmed compact enough for LoRa. Backed by OSRM, Nominatim and Overpass. Map tiles are not served over the mesh (too heavy); this is data only. Coordinates are decimal degrees (WGS84).
auth: public = anyone may call ยท identity = identified client required ยท allow-list = approved identities only
rev Reverse geocode a coordinate to a place auth: public
lat float, required latitude in decimal degrees
lon float, required longitude in decimal degrees
โ returns { label: str, lat: float, lon: float }
fwd Forward geocode: place text to coordinates auth: public
q str, required free-text place/address query
limit int, max 5 max results (1-5, default 1)
โ returns [{lat,lon,label}]
route Driving route between two points auth: public
frm [lat,lon], required start point as lat,lon
to [lat,lon], required end point as lat,lon
geom bool include encoded polyline geometry (default false)
โ returns { dist_m: int, dur_s: int, poly: str? }
near Snap a coordinate to the nearest road auth: public
lat float, required latitude in decimal degrees
lon float, required longitude in decimal degrees
โ returns { lat: float, lon: float, name: str? }
poi Named points of interest near a coordinate auth: public
lat float, required center latitude
lon float, required center longitude
radius int, max 3000 search radius in metres (max 3000)
cat str, optional filter, e.g. amenity=cafe (optional)
limit int, max 30 max results (max 30)
โ returns [{name,lat,lon,cat}]
place Best place match with contact info (for a place card) auth: public
q str, required place/POI/address text
โ returns { lat: float, lon: float, label: str, name: str, cls: str, type: str, importance: float, contact: {phone?,website?,hours?} }
dir Turn-by-turn driving directions auth: public
q_from str, optional start place/address text (geocoded); or use frm
q_to str, optional destination place/address text (geocoded); or use to
frm [lat,lon], optional start coordinate (instead of q_from)
to [lat,lon], optional destination coordinate (instead of q_to)
โ returns { dist_m: int, dur_s: int, from_label: str?, to_label: str?, steps: [{text,dist_m}] }
Source https://github.com/wdunn001/rns-geo
Created with MeshAPI