Traveller Store CotI Features New Posts Mark Forums Read Register

Go Back > Citizens of the Imperium > General Traveller Discussions > Software Solutions

Software Solutions Discussions on Traveller related software.

Thread Tools Display Modes
Old June 12th, 2014, 11:20 AM
robject's Avatar
robject robject is offline
Join Date: Mar 2002
Posts: 13,907
Gallery : 9
Visit robject's Blog
robject has disabled reputation
Default JSON Sector Data Service

I want to discuss with Thalassogen, Draconian, and Joshua Bell about a sector data model.

I am updating my website, and I find that my server-side code is inexorably, slowly moving away from HTML generation and instead serving JSON data, which my webpages then render however they like.

So I am thinking about "how would I do this in a way that is convenient for me BUT also useful for others"?

My current format is verbose and detailed. There are many ways to organize this data, this is just one. I'm wondering if y'all would use it if it were in a different (better?) structure:

The reason I am thinking about this is because my strengths are in server-side data crunching and production, but not persistence, and not presentation. Presumably, others are better at presentation (e.g. Travellermap!!!!) and other services I am currently forgetting. So, I would want others to be able to consume my data. Some level of interoperability seems therefore to be at least a good idea to think about.

I know we've been over this before. But talking about it is therapeutic to me.

  'meta': {
    'generated': 'Thu Jun 12 15:10:45 2014',
    'prng': 'burtle',
    'density': 'Standard',
    'sectorUID': 'mw-orion-4991',
    'hash': 'MD5',
    'tlCap': 21,
    'systems': 619,
    'civilization': 'Civilized'

  '2632': {
    'population': 0,
    'importance extension': {
      'importance': -1,
      'expected ship traffic': 0
    '_stellar': 'A6 II 10:A3 V G1 V',
    '_trade codes': 'Wa Co Sa',
    'pop mult': 0,
    'primary': {
      'spectral': 'A',
      'position': 'primary',
      '_uwp': '  A6 II',
      'decimal': 6,
      'spectral flux': 2,
      'size': 'II',
      'size flux': 3
    'near companion': {
      'spectral': 'G',
      'orbit': '',
      'decimal': 1,
      'size': 'V'
    '_uwp': '2632 Angindsan       B89A002-0    Wa Co Sa                003',
    'law level': 2,
    'starport': 'B',
    'hz variance': '+1',
    'size': 8,
    'hz': 9,
    '_extensions': '{-1} (C04-3) [1151]',
    'orbit': 4,
    'atmosphere': 9,
    'cultural extension': {
      'acceptance': 1,
      'symbols': 1,
      'strangeness': 5,
      'homogeneity': 1
    'gas giants': 3,
    'mainworld type': 'Far Satellite',
    'government': 0,
    'belt data': [],
    '_bases': '  ',
    'economic extension': {
      'resources': 12,
      'efficiency': -3,
      'infrastructure': 4,
      'labor': 0,
      'ru': -144
    'tech level': 0,
    'planetoid belts': 0,
    'tas': '',
    'name': 'Angindsan',
    'gas giant data': [
        'number': 1,
        'orbit': '14.21',
        'satellites': 3,
        '_uwp': 'YLGG000-0:3 ',
        'size': 27,
        'code': 'LGG',
        'ringed': ''
        'number': 2,
        'orbit': '11.71',
        'satellites': 5,
        '_uwp': 'YLGG000-0:5 ',
        'size': 28,
        'code': 'LGG',
        'ringed': ''
        'number': 3,
        'orbit': '12.81',
        'satellites': 3,
        '_uwp': 'YLGG000-0:3 ',
        'size': 26,
        'code': 'LGG',
        'ringed': ''
    'near star': {
      'spectral': 'A',
      'orbit': 10,
      '_uwp': '10:A3 V    hz7',
      'decimal': 3,
      'size': 'V',
      'hz': 7
    'hex': '2632',
    'hydrographics': 10

  ...(and so on)...


A sector using my verbose format below takes up a bit over 1 megabyte, and is a bit over 55,000 lines long.

That's a FAR CRY from a 30k SEC file.
Imperiallines magazine
My Helpful Stuff for Traveller5
IMTU tc+ t5++ 3i(+) au ls+ / OTU 44% an+ dt+ ge- j- jf+ n- pi+ pp+ tr+ tv- uwp+ xb+
Tools Link

Last edited by robject; June 12th, 2014 at 04:24 PM..
Reply With Quote

To see more of this thread, please login or register.


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

This website and its contents are copyright ©2010- Far Future Enterprises. All rights reserved. Traveller is a registered trademark of Far Future Enterprises .
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (c) 2010-2013, Far Future Enterprises. All Rights Reserved.