GET /v1/reverse-geocode

Reverse Geocoding API: coordinates to addresses

Send a lat,lng from a phone's GPS or a pin on a map and get the nearest address or place, plus the administrative areas that contain it. Label check-ins, deliveries and trips with names people understand.

Request and response

Copy, paste and run with your test key. The response below is an illustrative example.
curl "https://api.wayline.cloud/v1/reverse-geocode?point=23.7465,90.376" \
  -H "Authorization: Bearer $WAYLINE_API_KEY"
Response (example)
{
  "results": [
    {
      "formatted_address": "Road 27, Dhanmondi, Dhaka 1209, Bangladesh",
      "location": {
        "lat": 23.7465,
        "lng": 90.376
      },
      "type": "street",
      "address": {
        "street": "Road 27",
        "district": "Dhanmondi",
        "city": "Dhaka",
        "county": "Dhaka",
        "state": "Dhaka Division",
        "postcode": "1209",
        "country": "Bangladesh",
        "country_code": "BD"
      },
      "distance_meters": 12,
      "source": "osm"
    }
  ],
  "admin_areas": {
    "division": {
      "name": "Dhaka"
    },
    "district": {
      "name": "Dhaka"
    },
    "upazila": {
      "name": "Dhanmondi"
    }
  },
  "summary": {
    "label": "Near Road 27, Dhanmondi, Dhaka",
    "near": true,
    "distance_meters": 12,
    "road": "Road 27",
    "suburb": "Dhanmondi",
    "city": "Dhaka",
    "upazila": "Dhanmondi",
    "district": "Dhaka",
    "division": "Dhaka",
    "postcode": "1209",
    "country": "Bangladesh"
  },
  "units_charged": 1,
  "region": "bd"
}

What the Reverse Geocoding API gives you

  • Address plus admin areas

    Each response includes the closest place and the areas containing the point; in Bangladesh that is division, district, upazila and union.

  • Batch up to 100 points

    POST /v1/reverse-geocode/batch labels a rep's whole day of check-ins in one call. Out-of-coverage points are flagged and not billed.

  • Works in rural areas

    When nothing is mapped within about 1 km, the search widens to 5 km once, and village data from GeoNames and Overture fills OpenStreetMap gaps.

  • Filter what you get back

    Use types=street,locality to skip shops and points of interest, radius_meters to cap distance, and lang=bn for local names.

How reverse geocoding works

The point is matched to the region that contains it, then searched against that region's place index, closest first. The response tells you how far the returned place is from your point, so you can decide when a label is precise enough to show.

Pair it with distance and mileage

Field teams typically reverse geocode each check-in, then use the Batch Distance API for road mileage between consecutive check-ins. Both run on the same OpenStreetMap-based data and the same API key.

Frequently asked questions

How accurate is the returned address?

It is the closest mapped address or place to your coordinate, and distance_meters tells you how far away it is. In dense cities that is usually a few meters; in rural areas it may be a village or union rather than a street.

How is batch reverse geocoding billed?

One reverse_geocode unit per point inside coverage. Points outside coverage come back with status OUT_OF_COVERAGE and are not billed.

Can I store the results?

Yes. Results come from open data, so you can store them with your records. Keep the OpenStreetMap attribution where you display map-derived data.

Start building in minutes

Create an account, grab a test key and make your first request in under five minutes.