Display server data from custom Live tracking
Hi,
I created a webservice to track my position - it works as expected.
But there is a (of course) a big difference to the "built in Locus Map buddy tracking".
This service also shows other positions on my map.
Is this also possible via "owner defined" webservices?
I just guess (hope?) that I can return a list of positions as answer to the post I get from Locus Map.
Am I right, or is this feature (showing other positions) only available with the "built in service"?
By the way - I tested a lot of mapping apps (for hiking / biking) - your app is really outstanding!
The only thing I'm missing is "body tracking" (needed for "group events").
Unfortunately we can't use your "built in service" because we also have other sources (sending positions to the server) not only Locus Maps. And we need to show theese positions also on the map.
Manni
Good day Manni,
such feature is currently not implemented for custom "Live tracking" system. Private internal live tracking use completely different system. I can anyway imagine to make this done in a way like " during response, download GPX file and display it".
Probably closest idea to this is this one: http://help.locusmap.eu/topic/_live_waypoints_from_remote_server
Good day Manni,
such feature is currently not implemented for custom "Live tracking" system. Private internal live tracking use completely different system. I can anyway imagine to make this done in a way like " during response, download GPX file and display it".
Probably closest idea to this is this one: http://help.locusmap.eu/topic/_live_waypoints_from_remote_server
Good day Manni,
one more post from me ...
Just yesterday, Péter wanted something similar from me ( http://help.locusmap.eu/topic/_live_waypoints_from_remote_server#comment-39806 ). I was thinking about it now and in the end created quite simple improvements in existing "Custom Live tracking service".
In next Beta version should work following method:
If Locus Map find correctly defined "Content-type", it should then try to load content from body and display it on the map.
I've not yet tested it, so hope first version will be working. Let me know.
Good day Manni,
one more post from me ...
Just yesterday, Péter wanted something similar from me ( http://help.locusmap.eu/topic/_live_waypoints_from_remote_server#comment-39806 ). I was thinking about it now and in the end created quite simple improvements in existing "Custom Live tracking service".
In next Beta version should work following method:
If Locus Map find correctly defined "Content-type", it should then try to load content from body and display it on the map.
I've not yet tested it, so hope first version will be working. Let me know.
Unfortunately I can't call custom webservices in "Live tracking" with the free (beta) version.
Only Locus tracking is startable.
On the other entries (I have several for testing) do nothing when I click start.
Unfortunately I can't call custom webservices in "Live tracking" with the free (beta) version.
Only Locus tracking is startable.
On the other entries (I have several for testing) do nothing when I click start.
And just not to open a new topic - a short question:
What exactly is the time sent to the service?
When I set it to seconds (today) it tells year:0048 month:5 day:7 Hour....
Why 48 and not 2017?
And just not to open a new topic - a short question:
What exactly is the time sent to the service?
When I set it to seconds (today) it tells year:0048 month:5 day:7 Hour....
Why 48 and not 2017?
Hi Manfred, sure Menion will answer you better, but while a motive that I can think of can be.
In computing many times when you want to indicate an instant of time or time stamp, the timestamp data type is used. This represents the number of seconds (sometimes milliseconds) that have passed since 1970-01-01 00: 00: 00.000. I imagine that year 48 is 2017-1970 + 1. The +1 is for the year 1970 itself, it would be like year 0 that is also counted.
Greetings.
Hi Manfred, sure Menion will answer you better, but while a motive that I can think of can be.
In computing many times when you want to indicate an instant of time or time stamp, the timestamp data type is used. This represents the number of seconds (sometimes milliseconds) that have passed since 1970-01-01 00: 00: 00.000. I imagine that year 48 is 2017-1970 + 1. The +1 is for the year 1970 itself, it would be like year 0 that is also counted.
Greetings.
@Tigus: thank you - I made a mistake when converting to DateTime (C#) using Ticks.
You are right - the data is a "UnixTime" based at 1970 - SOLVED
@Tigus: thank you - I made a mistake when converting to DateTime (C#) using Ticks.
You are right - the data is a "UnixTime" based at 1970 - SOLVED
I can now call the WS from the beta:
But returning the (see below) GPX shows nothing on the map.
If I place the string in a GPX file and import it I can see the Waypoint.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="gpx-poi.com"> <wpt lat="48.236614" lon="14.333875"> <time>2017-05-07T15:52:12Z</time> <name>Manni</name> <cmt>thecomment</cmt> <desc>thedescripton is here</desc> <sym>symb</sym> <type>thetype</type> </wpt> </gpx>
I can now call the WS from the beta:
But returning the (see below) GPX shows nothing on the map.
If I place the string in a GPX file and import it I can see the Waypoint.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="gpx-poi.com"> <wpt lat="48.236614" lon="14.333875"> <time>2017-05-07T15:52:12Z</time> <name>Manni</name> <cmt>thecomment</cmt> <desc>thedescripton is here</desc> <sym>symb</sym> <type>thetype</type> </wpt> </gpx>
Hello guys,
@Tigus, thanks for a precise and correct answer about timestamp.
@Manfred : is is possible to give me some temporary access to your service, so I may test it? Or at least if you may print me response header that is send from your server back to Locus Map. Thanks
Hello guys,
@Tigus, thanks for a precise and correct answer about timestamp.
@Manfred : is is possible to give me some temporary access to your service, so I may test it? Or at least if you may print me response header that is send from your server back to Locus Map. Thanks
So we found two issues. One on server side ( incorrect "content type" returned to app ) and second in app ( incorrectly handled received data ).
Seems to work correctly now based on my description in previous post. Task completed.
So we found two issues. One on server side ( incorrect "content type" returned to app ) and second in app ( incorrectly handled received data ).
Seems to work correctly now based on my description in previous post. Task completed.
Good Job Menion,
I can't wait to see it running in the next beta - and of course in the release.
Good Job Menion,
I can't wait to see it running in the next beta - and of course in the release.
Thank You! Thank You! Thank You! Thank You!
You ARE THE BEST.
Where can I donate some money to You?
Thank You! Thank You! Thank You! Thank You!
You ARE THE BEST.
Where can I donate some money to You?
Replies have been locked on this page!