FollowMee Forums   Home    Forums    Active Topics    Search
    Login
FollowMee Forums >> General Discussion >> General Discussion >> API field queries for returned KML
API field queries for returned KML
Author Topic
rt-92in92


Newbie

Join Date: 2019-03-10
Posts: 3

Posted: 2019-03-12 04:24:30 PM

I''m using the API layer to query for current location and history.
However, is there a way of changing the returned pin/content data.

So instead of getting:
2019-03-10 09:39:55 PM
GPS 52.53466,-1.27547
Speed: 0 mph, 0 km/h
Altitude: 443 ft, 135 meters
Accuracy: 64 meters

I can send a query to the tracks.aspx code to custom the returned lines, similar to the customized icon add-on that you can custom those lines.
Something like:

tracks.aspx?key=1234&username=demo&output=kml&function=currentfordevice&deviceid=1234&line1=[showaddress]&line2=[timestamp]

Thanks for any info/advice.
Andy


Administrator


Best of the Best


Join Date: 2010-01-27
Posts: 1323

Posted: 2019-03-12 06:10:20 PM

Hi, Andy:

This is not possible. The info box on the FollowMee web site is not changeable. Only the info box on your embedded map is changeable, through the customized icon add-on.

rt-92in92


Newbie

Join Date: 2019-03-10
Posts: 3

Posted: 2019-03-13 04:30:58 AM

Any chance of a feature request for it?
We''re sharing a public location and would like to hide some specific information when we''re implementing our own map on website using only API.
Administrator


Best of the Best


Join Date: 2010-01-27
Posts: 1323

Posted: 2019-03-13 08:42:06 AM

I think I am not so clear of your original question. Do you want to customize the info box data on the map on your web site? If so, you can use the customized icon add-on to do so.

But the info box data on the map of this web site (http://www.followmee.com/map.aspx) is not changeable. This map page is not for sharing. You need to login to your account to view this page.

rt-92in92


Newbie

Join Date: 2019-03-10
Posts: 3

Posted: 2019-03-15 06:40:00 AM

Hi,

Sorry I may not have been clear.
I''m using API to query tracks.aspx so I can render my own maps using my own google maps API key. (Not map page sharing)

So I''m calling the API to give me KML output. I have customized icon add-on bought and set it up, but this does not send the data in the API return data.

So I call:

http://www.followmee.com/api/tracks.aspx?key=xxx&username=rt-92in92&output=kml&function=historyfordevice&history=1&deviceid=xxx

Which returns the current 1hr history into my javascript code on my own page.
The points plotted/returned KML contains:

(NOTE - this forum wont let me paste raw HTML!)

Code:

{Placemark}{name}2019-03-12 03:37:38 AM{/name}{TimeStamp}{when}2019-03-12T03:37:38+00:00{/when}{/TimeStamp}{description}{![CDATA[{div style=''width:17
0''}{font style=''font-size:13px''}GPS 50.42849,-3.80602{br}Speed: 69 mph, 111 km/h{br}Altitude: 590 ft, 180 meters{br}Accuracy: 6 meters{br}{br}{br}{/
font}{font size="1"}Powered by {a target=''_blank'' href=''http://www.FollowMee.com''}FollowMee.com{/a}{/font}{/div}]]}{/description}{styleUrl}#csw{/sty
leUrl}{Point}{coordinates}-3.80602,50.42849,180{/coordinates}{/Point}{/Placemark}


Which seems to ignore my customized icon settings that I have active on the account and have set them.

Administrator


Best of the Best


Join Date: 2010-01-27
Posts: 1323

Posted: 2019-03-15 08:00:59 AM

Thank you for your explanation. The tracks.aspx can return the customized icon data. But you need to modify your url.

1. Change to output=json. It does not work with kml data type.
2. The customized icon add-on only works with current view, and not history. Change the function parameter to function=currentfordevice. And remove the history parameter.
3. Append &sm=1 to your url.


  FollowMee.com DMG Forums 3.2