Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonexist/mapbox-geocoding-api-testing


https://github.com/jonexist/mapbox-geocoding-api-testing

api-testing insomnia mapbox-geocoding-api

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Finding Nearby Pharmacies with Geocoding API

This test demonstrates how to find pharmacies near specific geographic coordinates using the Mapbox Geocoding API.

## Endpoint

The endpoint for finding nearby pharmacies is:

```bash
https://api.mapbox.com/geocoding/v5/mapbox.places/pharmacy.json?proximity=-79.8419,35.1849&access_token=YOUR_MAPBOX_ACCESS_TOKEN
```

## Parameters

The endpoint utilizes the following parameters:

- `mapbox.places`: This specifies the Mapbox Geocoding API endpoint for searching places.

- `proximity`: Specifies the longitude and latitude of the location you wish to search near. In this example, it is set to `-79.8419,35.1849`, corresponding to coordinates in North Carolina.

- `access_token`: Your Mapbox access token, required for authenticating the request. Replace `YOUR_MAPBOX_ACCESS_TOKEN` with your actual token.

## How it works

By utilizing the `mapbox.places` endpoint with the `pharmacy` category and providing specific geographic coordinates through the `proximity` parameter, the API retrieves information about pharmacies near the specified location. This information can then be utilized in applications to assist users in finding nearby pharmacies efficiently.