This object is in archive! 

Display server data from custom Live tracking

Manfred Pohler shared this idea 6 years ago
Completed

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

Replies (11)

photo
1

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

photo
3

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:

  • set into response header Content-Type to "application/gpx+xml" ( for GPX files ) or "application/vnd.google-earth.kml+xml" ( for KML files )
  • into response body, insert GPX/KML content


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.

photo
1

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.

photo
1

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?

photo
1

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.

photo
1

@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

photo
1

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>

photo
1

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

photo
1

Hi Menion,


I attached a screenshot with the parameters I need to be transfered (using POST)

Beside the default fields there are two extra:

uid = TEC (else it won't accept the call)

getfriends = true (if not sent / empty no GPX will be returned - just a status)


I don't wanna share the URL here in the public and found no way to send you a private message.

Can you write me an email so I can reply?


Manni

photo
1

Hello,

thanks. Please click on top of this screen on "Private ticket" and send me necessary information there. It will be visible only for team behind Locus Map. Thank You

photo
1

OK - I sent you the data

photo
2

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.

photo
1

Good Job Menion,


I can't wait to see it running in the next beta - and of course in the release.

photo
1

Thank You! Thank You! Thank You! Thank You!

You ARE THE BEST.

Where can I donate some money to You?

photo
2

Good day Glaeken,

no money needed, but thanks :). Use this feature with your friends, use Locus and report some problems if they appear. This is more then money for me! Anyway seems it works, perfect! Enjoy it.

Replies have been locked on this page!