mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
EV Chargers service (#219)
This commit is contained in:
16
examples/evchargers/search/curl/searchByBoundingBox.sh
Executable file
16
examples/evchargers/search/curl/searchByBoundingBox.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"box": {
|
||||
"bottom_left": {
|
||||
"latitude": 51.52627543859447,
|
||||
"longitude": -0.03635349400295168
|
||||
},
|
||||
"top_right": {
|
||||
"latitude": 51.56717121807993,
|
||||
"longitude": -0.002293530559768285
|
||||
}
|
||||
},
|
||||
"max_results": 2
|
||||
}'
|
||||
11
examples/evchargers/search/curl/searchByLocation.sh
Executable file
11
examples/evchargers/search/curl/searchByLocation.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"distance": 2000,
|
||||
"location": {
|
||||
"latitude": 51.53336351319885,
|
||||
"longitude": -0.0252
|
||||
},
|
||||
"max_results": 2
|
||||
}'
|
||||
14
examples/evchargers/search/curl/searchWithFiltersFastChargersOnly.sh
Executable file
14
examples/evchargers/search/curl/searchWithFiltersFastChargersOnly.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
curl "https://api.m3o.com/v1/evchargers/Search" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"distance": 2000,
|
||||
"levels": [
|
||||
"3"
|
||||
],
|
||||
"location": {
|
||||
"latitude": 51.53336351319885,
|
||||
"longitude": -0.0252
|
||||
},
|
||||
"max_results": 2
|
||||
}'
|
||||
Reference in New Issue
Block a user