Yep, have 3-5 secs response time, and get answers with some contents ;-)
Weird thingy.
How did U fix it?![]()
I guess it just knows not to mess with me
Yep, have 3-5 secs response time, and get answers with some contents ;-)
Weird thingy.
How did U fix it?![]()
I added a date/timestamp submission to my API so you may limit the system data to newer systems. I just added the columns yesterday, so no system is older than a day, right now. Systems created or modified since then get correct timestamps.
Is there any demand for an API to receive distances?
OK, your wish is my command. Distance API will come ASAP.
In between, can you pls check if the coordinates I found for Col 285 Sector ZN-M b22-2 (-146.03125/33.59375/125.6875) are correct, and calculate the distance to Blende?
I'd say that all changes since a given timestamp are what you want. That way you get, and should be handling, changes to existing data as well as purely new data. I did specifically code the data puller for my route planner DB to work in this way for EDSC.I noticed Finwen is using an ID in his database to remember the last fetched systems and distances. Would it be useful if you could receive the ID from my API and ask for systems or distances beginning at a specific ID instead of a date and time?
Oh I don't want to remove the date/time filter, I wanted to make the ID thing availabe additionally. But after thinking a bit it doesn't make really much sense, since a system or a distance with a certain ID may change after creation, so everything after a given date & time is way more interesting.
It's not much work to include it in my API, but if it is useless and no one wants it, I have better things to do in my spare time![]()
This might be a good idea, depending on exact implementation there's an edge case with multiple updates to the same data in the same second. However the easiest way to solve that is to be paranoid and request all changes including the timestamp of the previous last change you saw, i.e. request and cope with overlap. If last seen change was 2015-05-21T034536Z then either the API always includes the second you specify for "changes since this timestamp" or you specify 1 second earlier, i.e. 2015-05-21T034535Z. Also, would this be a global 'change number' across the entire data set? If so that means having to deal with multiple simultaenous updaters. If not then I'm not sure how you use those tuple change numbers to request ALL changes since a previous pull.I'd actually prefer an incrementing "change number".
That strikes me as exactly the wrong way to do it. ALWAYS use a unique static ID on a data tuple. Anything else that is actual data is subject to change. We know FD have changed/corrected some system names since release and there's nothing to say they won't eventually rename some of the PG names to a more human monicker. Either way you have to deal with merging data from the different names, but using a unique ID means that the name is the only thing you need to change, not also anything that was referring to the system. Remember there may be any number of other programs making use of the data. Think of a simple Explorer Notes app that allows a player to makes notes about the system, you'd want those tied to a unique, never changing, ID for the system, not a name that you may then have to search/replace in the application data due to a rename.I wouldn't use static IDs on the distances and systems - I've built everything using the system names as a unique key.
Which means timestamps aren't an issue at all. For my own projects I have the DB specified as using UTC, set "TZ=UTC" in all programs/scripts, and if interfacing to something else that doesn't do that I'll convert back and forth as needed. Using UTC for any timestamp is the only sane thing. The only time to use anything other than UTC is user input and display to the user.The problem with timestamps is dealing with timezones. If you're using timestamps please make sure they're treated as UTC and not local time.
In most cases, yes it does. In some cases it doesn't. It's unsure why this happens, there are several possible reasons. We got no sign of life from TornSoul since mid of December, so it's only speculation. But don't worry, your work is not lost. RedWizzard & me are copying EDSC/TGC data, and we're investigating "problem systems". In the near future there will be an EDDiscovery version and a modified JS from RedWizzard which will transfer new distances to EDSC and to my site, too. We will probably replace EDSC.I like to trilaterate systems using Finwen's entry page, and also add distances to some uncalculated systems to add to the pool.
Once an uncalculated system has a critical number of reliable measurements from trilaterated systems, does the database perform the calculation and determine the location of the uncalculated system?
If you're using timestamps please make sure they're treated as UTC and not local time.