api.aprs.fi does not return location for stations using aprs.fi app for iOS

126 views
Skip to first unread message

Martin Nile

unread,
Dec 21, 2021, 5:00:54 PM12/21/21
to aprs.fi
api.aprs.fi does not return location information for stations that beacon using aprs.fi app.

For example, if I query the api for my iphone running aprs.fi for iOS
(where xxxxx is my api key) returns
<xml>
<command>get</command>
<result>ok</result>
<what>loc</what>
<found>0</found>
<entries/>
</xml>

The station appears on aprs.fi, and raw packets show the following:
KI6WJP-13>APFII0,qAC,APRSFI:@155001h4117.60N/12219.20W$aprs.fi for iOS!w!!!

If I query for a station not using the App, I get the expected result.


--
KI6WJP
Martin


Heikki Hannikainen

unread,
Jan 14, 2022, 1:57:25 AM1/14/22
to aprs.fi
On Tue, 21 Dec 2021, Martin Nile wrote:

> api.aprs.fi does not return location information for stations that beacon using aprs.fi app.
>
> For example, if I query the api for my iphone running aprs.fi for iOS
> api url=[https://api.aprs.fi/api/get?name=KI6WJP-13&what=loc&apikey=xxxxx&format=xml]
> (where xxxxx is my api key) returns

Hi,

As you might have read from other messages here, the stations uploaded
by the app are in a different namespace than stations coming in from the
APRS-IS, so that duplicate stations having the same callsign-SSID can be
differentiated, and stations uploaded by the app can be deleted or
renamed without affecting other data sourced by the same callsign-SSID.

If you'll look up KI6WJP-13 on aprs.fi, you'll see it switches to a
different URL, with a numeric identifier:

https://aprs.fi/info/w/7869366774

Try looking up with that numeric identifier as the name in the API, I
believe that might just work?

- Hessu

Martin Nile

unread,
Jan 19, 2022, 8:52:56 AM1/19/22
to aprs.fi
How do I determine the numeric identifier without using the web page when I only know the callsign?

I ask, because I maintain a program that uses the api to get the location of stations sending weather queries.  WXBOT responds to APRS message queries with a weather forecast for their location.  WXBOT uses the api to get the location of the source station so it can respond with a forecast. 

My current work-around is to respond to the station requesting they send a position beacon.  After WXBOT receives the beacon, it can respond with a forecast.  It would be nice to have consisent behaviour for the app stations.

--
Martin KI6WJP

Heikki Hannikainen

unread,
Jan 28, 2022, 3:55:17 PM1/28/22
to aprs.fi
On Mon, 17 Jan 2022, Martin Nile wrote:

> How do I determine the numeric identifier without using the web page when I only know the callsign?

The API does not have a search facility, you'll need to know the unique
identifier of the station being queried before making the query.
Unfortunately the API does not quite support your use case.

With the web stations there would also be an ambiguity, as there can be
more than one station having the same name. In some cases you'd also get
two stations and positions, if there is both an APRS station on the
APRS-IS and another web station sharing the same name. This is quite
common.
> --
> You received this message because you are subscribed to the Google Groups "aprs.fi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> aprsfi+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/aprsfi/74b8a041-52e7-4920-9929-31ed18b9f40an%40googlegroups.com.
>
>

- Hessu
Reply all
Reply to author
Forward
0 new messages