User Tools

Site Tools


Sidebar

Content

Mapcraft - Fantasy map designer

WorldGen - SciFi universe generator

Mapcraft Web - Web based fantasy map designer

All code for the project is released under the GPL, and is copyright Samuel Penn.

The text on this wiki is dual licensed CC-BY-SA and GPL.

You can contact the author at sam@glendale.org.uk

worldgen:sectors

Sectors

A Sector is an area of space 32 parsecs wide by 40 parsecs tall. We use the Traveller style of displaying star maps, so the galaxy is two dimensional, with hexes representing a parsec.

A sector is divided into 16 sub-sectors, each of 8 x 10 parsecs. A sub-sector can be referenced by a letter code (A-P) or by a name. The position of these sub-sectors within the sector is as follows:

A B C D
E F G H
I J K L
M N O P

Sector API

Information on sectors can be accessed using a REST interface. The base URL for any given sector is /sector/<id>. To get a list of all sectors, go to /sector/index. As with all other interfaces use .html to retrieve a web page, or .xml or .txt to retrieve XML. At some point, a .jpg suffix will retrieve a map of the sector.

At some point, the following interfaces are planned:

  • /sector/index - Get list of all sectors in this universe.
  • /sector/<id> - Get information on sector <id>, including a list of star systems.
  • /sector/<name> - Get information on named sector <name>, as for listing by id.
  • /sector/<id>/<subsector> - Get information on a subsector, by name or by letter code (A-P).
  • /sector/<id|name>/xxyy - Get information on system.
  • /sector/x,y - Get information on sector at this coordinate.
worldgen/sectors.txt · Last modified: 2015/02/04 22:39 (external edit)