API: Toplist per municipal/area

Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

API: Toplist per municipal/area

Post by Megachip »

Hi Community,

is this possible? (or just per region/country)

Thanks a lot
Meg
HappyF
Zonemaker
Posts: 290
Joined: 08 Aug 2012 10:53
Country: Sweden
Contact:

Re: API: Toplist per municipal/area

Post by HappyF »

There already are top lists per region. Check under TOPLISTS on turfgame.com
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: API: Toplist per municipal/area

Post by Megachip »

HappyF wrote: 12 Apr 2021 16:33 There already are top lists per region. Check under TOPLISTS on turfgame.com
I know... and an API Endpoint for that. But this wasn't my question ;)

Anyway, thanks for the quick response.
User avatar
DIProgan
Posts: 692
Joined: 21 Aug 2013 08:47
Country: Sweden
Contact:

Re: API: Toplist per municipal/area

Post by DIProgan »

Afraid not but municipality/area focus could be great for the local competition.
Running the third-party project https://turfbridge.com
embeoo
Zonemaker
Posts: 817
Joined: 30 Jul 2012 00:50
Country: Sweden
Location: SoDa

Re: API: Toplist per municipal/area

Post by embeoo »

There is not much that acts on the area level in turf itself, it was a quite recent addition and pretty much just is extra information on the zones. Used by third party sites like https://lundkvist.com/ and https://frut.zundin.se/unika.php for more separation of information.

Obviously there wouldn't be that much magic to realise area toplists (beyond deciding where a turfer should go, where most zones are taken? All points counts towards the area they were taken in?)

So just hope that it comes to turf. Or that a new or existing third party site picks this up.
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: API: Toplist per municipal/area

Post by Megachip »

Hi embeoo,

there is ;) I already use it for area based takeover notifications. But now I want to extend these notifications to (once a day) highscores/rankings and new zones in that area. 2nd one is possible, first one seems not ... that's the reason of that request ;)

With the existent, open, api data it would be a huge expenditure to stick a player to a region ^^ cause you have to store all informations locally to see in which area a player has most zones.

But thanks everybody for the informations and responses. Lets see what API V6 brings ;)

P.S. Didn't even know frut ... thanks for sharing.
User avatar
DIProgan
Posts: 692
Joined: 21 Aug 2013 08:47
Country: Sweden
Contact:

Re: API: Toplist per municipal/area

Post by DIProgan »

ARM cpu's ftw ^^
Running the third-party project https://turfbridge.com
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: API: Toplist per municipal/area

Post by Megachip »

Hmpf, there will be even no easy work around :(

Afaik there is no way to get all zones of an area? So only way is to iterate through

Code: Select all

/zones/all
?
User avatar
DIProgan
Posts: 692
Joined: 21 Aug 2013 08:47
Country: Sweden
Contact:

Re: API: Toplist per municipal/area

Post by DIProgan »

If you request takeovers the area key for the specific zones/takes is in that data as well. For an initial buiid you probably want the zones/all though yep. Note that new zones appear every day.
Running the third-party project https://turfbridge.com
Megachip
Posts: 34
Joined: 22 Feb 2013 01:22
Country: Germany

Re: API: Toplist per municipal/area

Post by Megachip »

DIProgan wrote: 21 Apr 2021 07:01 If you request takeovers the area key for the specific zones/takes is in that data as well.
Yeah, but takeover only have data of the last 15 min, so a run once a day wouldn’t make sense ...
For that I’ve to keep the data of the 15 min runs persistent :(
Post Reply

Return to “General”