Best places for a life category
Changed onRank cities against the astrocartography lines of a chart for one of the 19 life categories. Distance to a line is computed from the body hour angle and altitude rather than against a discretised polyline, so it is exact: the distance to a horizon line IS the altitude in degrees of arc, and a meridian line offset is the hour angle times cos(latitude). Supportive and challenging totals are returned separately with every contributing line and its distance, so a strong-but-turbulent city is distinguishable from an average one. Bundled GeoNames set of 34,028 places above 15,000 people. Not geocoding: a smaller town is absent from the ranking rather than ranked poorly, and an arbitrary place name cannot be resolved.
Request
- Base URL: https://api.astroway.info/v1
- URL: https://api.astroway.info/v1/acg/best-places
- Auth: API key in header X-Api-Key
Query parameters
Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.
Round every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.
Request body
Example request
{
"timezone": "Europe/Kyiv"
}Response
Successful calculation
Example response
{
"ok": true
}Changes
- warning
changed the pattern of the request property
////from^\d{2}:\d{2}:\d{2}$to^\d{2}:\d{2}(:\d{2})?$
- warning
- info
added the new optional
queryrequest parameterfields - info
added the new optional
queryrequest parameterprecision
- info