Get Reports

Tommy 4 years ago

Hello all , first i tried to use API documentation to retrieve reports in google sheets
and it works fine if tested on demo servers

https://demo4.traccar.org/api/reports/route?deviceId=4288&from=2021-12-31T22%3A00%3A00.000Z&to=2022-06-10T23%3A12%3A06.711Z&mail=false

but with localhost doesn't work at all i tested it with post man works fine and give me the data in json format

http://Localhost:8082/api/reports/route?deviceId=124&from=2022-01-09T22%3A00%3A00.000Z&to=2022-06-10T20%3A58%3A43.235Z&mail=false
error : Exception: DNS error

headers passed successfully with basic authentication

so what's the wrong here any guide please

Anton Tananaev 4 years ago

Why is localhost from capital letter?

Tommy 4 years ago

Thanks Anton For replying , copy paste form network xhr

Anton Tananaev 4 years ago

Can you please provide a screenshot where we have it in the API documentation.

Tommy 4 years ago

sorry i edited my answer

http://{host}:{port}/api/reports/route

and i replaced localhost:8082
so if i'm doing something wrong , guide me please

Anton Tananaev 4 years ago

DNS error usually indicates some problem with the host name. That's why I'm asking.

Tommy 4 years ago

look i tried with ngrok to publish the server and get forwarding URL
and it works , data retrieved , so i will figure out away to this , but thanks for your concern , appreciated anton

i have another simple question if allowed to me :
how many pins can allocated in custom KML in poi , does the file have limited size 119kb

Anton Tananaev 4 years ago

Don't think there are any limits.

Tommy 4 years ago

It means there's away to accomplish something like this , ok i will seek to accomplish my target ♥

many thanks anton ♥