dakidarts-dakidarts-default / Nigeria API

Welcome to the Nigeria API! This API provides endpoints to lookup locations, find facilities and perform geospatial operations such as distance calculation and directions between two locations in Nigeria.

rapidapi.com
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: September 11 2023
Location

Introduction of Nigeria API

Model Details of Nigeria API

Nigerian Location Lookup API

Welcome to the Nigeria API! This API provides endpoints to lookup locations, find facilities and perform geospatial operations such as distance calculation and directions between two locations in Nigeria.

Endpoints

The API provides the following endpoints:

/geofy
/facility
/georev
/distance
/directions

/geofy

This endpoint allows you to lookup locations in Nigeria by providing an address query parameter. It returns the latitude, longitude and city name of the location.

Endpoint: /geofy

Method: GET

Request Parameters:

address: The address of the location to lookup.

Response:

The response is a JSON object with the following fields:

latitude: The latitude of the location. longitude: The longitude of the location. display_name: The name of the city where the location is located.

/facility

This endpoint allows you to get facilities in Nigeria like hospital, bank, college, etc. by providing optional query parameters for facility type, state and city. It returns a list of facilities that match the query parameters.

Endpoint: /facility

Method: GET

Request Parameters:

type: The type of health facility to lookup. Default is "hospital". state: The name of the state to filter facilities by. city: The name of the city to filter facilities by. limit: The number of results to return per page. Default is 100.

Response:

The response is a JSON object with the following fields:

results: A list of facilities that match the query parameters.

Each facility in the results field is a JSON object with the following fields:

amenity: The name of the facility. display_name: The display name of the facility. latitude: The latitude of the facility. longitude: The longitude of the facility. address: The address of the facility. village: The village where the facility is located. suburb: The suburb where the facility is located. division: The division where the facility is located. state: The state where the facility is located. country_code: The country code where the facility is located. county: The county where the facility is located. road: The road where the facility is located. category: The category of the facility. website: The website of the facility.

/georev

This endpoint allows you to perform reverse geocoding in Nigeria by providing query parameters for latitude and longitude. It returns the name of the city where the location is located.

Endpoint: /georev

Method: GET

Request Parameters:

lat: The latitude of the location. lon: The longitude of the location.

Response:

The response is a JSON object containing the reverse geocoding information for the provided latitude and longitude coordinates.

amenity: The name of the facility. city: The name of the city for the provided coordinates. region: The name of the region or state for the provided coordinates. country: The name of the country for the provided coordinates. type: The type of address of the provided coordinates. suburb: The name of the suburb for the provided coordinates. category: The category of the provided coordinates. boundingbox: The bounding box coordinates of the provided coordinates. display_name: The complete address for the provided coordinates.

If there is an error, the response will be a JSON object containing the error message.

error: 'The error message describing the encountered issue'

/distance

This endpoint calculates the distance between two locations based on their latitude and longitude coordinates, while allowing the user to specify the unit of measurement.

Endpoint: /distance

HTTP Method: GET

Request Parameters:

lat1 (float): latitude of the first location (required)
lon1 (float): longitude of the first location (required)
lat2 (float): latitude of the second location (required)
lon2 (float): longitude of the second location (required)
unit (string, optional): unit of distance measurement, valid options are 'km' (default), 'mi', 'ft', and 'yd'

Response:

If successful, returns a JSON object containing:
    distance (float): the calculated distance between the two locations
    unit (string): the unit of measurement used for the distance
If unsuccessful, returns a JSON object containing:
    error (string): the reason for the error
    HTTP status code: 400 if the unit of measurement is invalid

Caching: This endpoint is cached for 5 minutes (300 seconds). This means that if the same request is made within 5 minutes, the cached response will be returned instead of recalculating the distance.

/directions

This endpoint returns information about the route between two locations in terms of distance, duration, and steps.

Endpoint: /directions

Method: GET

URL Parameters:

start_lat: latitude of the starting point (required)
start_lon: longitude of the starting point (required)
end_lat: latitude of the ending point (required)
end_lon: longitude of the ending point (required)
distance_unit: the distance unit measurement (optional) 'km' or 'mi'

Response Parameters:

distance: distance of the route in meters
duration: duration of the route in seconds
steps: a list of dictionaries containing information about each step in the route, including:
    distance: distance of the step in meters
    duration: duration of the step in seconds
    direction: direction of the maneuver in the step
    location: latitude and longitude of the maneuver location
    instruction: instructions for the maneuver

Success Response:

Code: 200 OK
Content: A JSON object containing the route information

Error Response:

Code: 400 Bad Request
Content: A JSON object containing an error message if the query parameters are missing or invalid

Support

If you have any questions or issues with our API, please don't hesitate to contact us!

Runs of dakidarts-dakidarts-default Nigeria API on rapidapi.com

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Nigeria API rapidapi.com Model

Nigeria API rapidapi.com

Nigeria API rapidapi.com is an AI model on rapidapi.com that provides Nigeria API's model effect (Welcome to the Nigeria API! This API provides endpoints to lookup locations, find facilities and perform geospatial operations such as distance calculation and directions between two locations in Nigeria.), which can be used instantly with this dakidarts-dakidarts-default Nigeria API model. rapidapi.com supports a free trial of the Nigeria API model, and also provides paid use of the Nigeria API. Support call Nigeria API model through api, including Node.js, Python, http.

dakidarts-dakidarts-default Nigeria API online free

Nigeria API rapidapi.com is an online trial and call api platform, which integrates Nigeria API's modeling effects, including api services, and provides a free online trial of Nigeria API, you can try Nigeria API online for free by clicking the link below.

dakidarts-dakidarts-default Nigeria API online free url in rapidapi.com:

https://rapidapi.com/zh/dakidarts-dakidarts-default/api/nigeria-api/

Nigeria API install

Nigeria API is an open source model from GitHub that offers a free installation service, and any user can find Nigeria API on GitHub to install. At the same time, rapidapi.com provides the effect of Nigeria API install, users can directly use Nigeria API installed effect in rapidapi.com for debugging and trial. It also supports api for free installation.

Url of Nigeria API

Provider of Nigeria API rapidapi.com

dakidarts-dakidarts-default
ORGANIZATIONS

Other API from dakidarts-dakidarts-default

rapidapi.com

The Uganda API provides endpoints to lookup locations, find facilities and perform geospatial operations such as distance calculation and directions between two locations in Uganda.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The Egypt Lookup API users to retrieve in realtime the latitude, longitude, and address of a location in Egypt. The API utilizes the OpenStreetMap and Project-OSRM to retrieve up-to-date location data.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The Cameroon API provides endpoints to lookup locations, find facilities and perform geospatial operations such as distance calculation and directions between two locations in Cameroon.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

Welcome to the Ivory Coast Location Lookup API. This API allows you to retrieve the latitude, longitude, and address of any location in Ivory Coast.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The Morocco Location Lookup API allows you to retrieve the latitude and longitude of a location in Morocco. If the location is not found, the API will return an error response.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The South Africa API provides a set of endpoints to access various geographical information and services related to locations in South Africa. With this API, you can perform geocoding, reverse geocoding, retrieve facilities, calculate distances between locations, and obtain directions for routes in South Africa. The API utilizes external services such as Nominatim for geocoding and reverse geocoding, and the OSRM API for route calculations.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2023
rapidapi.com

The Ethiopia API is a location lookup API that retrieves the latitude, longitude, and address information for locations within Ethiopia.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The Canada Geo API provides various endpoints to retrieve geolocation information and perform distance calculations within Canada. From retrieving geolocation data and reverse geocoding to calculating distances and obtaining step-by-step directions, this API provides the tools necessary to enhance the functionality and user experience of your applications.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2023
rapidapi.com

The Australia Geo API simplifies location-related operations in Australia by providing geocoding, reverse geocoding, distance calculation, and directions functionality. Developers can integrate this API into their applications to enhance geographic data retrieval and spatial analysis for Australian locations.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2023
rapidapi.com

Welcome to the Ghanaian Location Lookup API! This API allows you to retrieve the latitude, longitude, and name of any location in Ghana.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The Tanzania API provides endpoints to lookup locations, find facilities and perform geospatial operations such as distance calculation and directions between two locations in Tanzania.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The Tunisia Lookup API allows you to look up the latitude, longitude, and address of a location in Tunisia.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The USA Geo API provides functionalities for geocoding, reverse geocoding, and calculating distances between locations in the United States.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2023
rapidapi.com

The Senegal Lookup API allows you to look up the latitude, longitude, and address of a location in Senegal.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 11 2023
rapidapi.com

The UK Geo API is a RESTful web service that provides various endpoints for retrieving geographical information and performing location-based operations within the United Kingdom. It leverages open-source data and external APIs to deliver accurate and up-to-date location-related functionalities.

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2023