← Back to API Ninjas
Find electric vehicle charging stations
Get electric vehicle charging stations near a location specified by latitude and longitude coordinates.
API Ninjas·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v1/evcharger",
query: {
"lat": 123,
"lon": 123
}
});
console.log(output);Query parameters
latrequired
number
Latitude coordinate.
lonrequired
number
Longitude coordinate.
distance
number
Search distance in kilometers. Default is 3 kilometers. Max value is 50 kilometers. (Default: 3)
level
number
Charging level (1, 2, or 3). By default, all levels are returned. (Allowed: 1, 2, 3)
limit
number
How many results to return. Must be between 1 and 30. Default is 3. (Default: 3)
offset
number
Number of results to skip. Used for pagination. Default is 0. (Default: 0)