Point Of Interest API

The Point of Interest (POI) API returns a list of names corresponding to geographic and administrative entities based on a specified latitude and longitude and selected category. Supported categories include:

  • State
  • District
  • Village
  • Pincode
  • And moreโ€ฆ

This API is ideal for applications dealing with address mapping, administrative boundary visualization, geospatial analytics, and government-related datasets.

๐Ÿ”‘ Authentication

  • All requests must include your API key.
  • Header Example:
  • Authorization: X-Authorization-Token (Get your token HERE)

๐ŸŒ Endpoint

  • GET /v4/point_of_interest
  • Base URL: https://apihub.latlong.ai/v4/point_of_interest

๐Ÿ“ฅ Request Parameters

ParameterTypeRequiredDescription
latfloatYesLatitude of the location
lonFloatYesLongitude of the location
categories string (comma-separated) YesList of POI categories (e.g., hospital, school, hotel)

๐Ÿ“ค Sample Request


  curl --location โ€˜https://apihub.latlong.ai/v4/point_of_interest.json?latitude=12.8974787&longitude=77.5796369&category=MORTH%20%2C%20Pin%20Code%20'  

๐Ÿ“ฆ Sample Response

{ 

  "code": 1001, 

  "status": "success", 

  "data": [ 

    { 

      "category": "MORTH", 

      "name": "Ka5-Bengalurusouth" 

    }, 

    { 

      "category": "Pin Code", 

      "name": "560078-J P Nagar" 

    } 

  ] 

} 

๐Ÿง  Features

  • โšก

    Get nearby places based on categories like school, hospital, bank, etc.

  • ๐Ÿ“

    Fast filtering based on location and category

  • ๐Ÿ—บ

    ๏ธ Useful for maps, local business search, travel and service apps

โš ๏ธ Errors

Status CodeMessageDescription
400Missing required parametersWhen query is not provided
401UnauthorizedAPI key missing or invalid
404No POIs found No POIs found matching the criteria
500Internal Server ErrorSomething went wrong on our side

Best Practices

  • Always validate coordinates before calling the API
  • Use relevant and specific categories for accurate results
  • Combine this API with map interaction to let users pick location visually