Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jonexist/mapbox-geocoding-api-testing
- Owner: jonexist
- Created: 2024-02-24T15:05:05.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-26T00:32:32.000Z (11 months ago)
- Last Synced: 2024-02-26T17:24:05.154Z (11 months ago)
- Topics: api-testing, insomnia, mapbox-geocoding-api
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.