Historical Map Data Instance

API endpoint that allows map history to be viewed.

Filter fields

You can filter the result set by providing the following query parameters:

And the usual set of historical filter fields:

  • history_user - filter by the user resource of the editor, if user was logged in. Allows for chained filtering on all of the filters available on the user resource, e.g. history_user__username.
  • history_user_ip - filter by the IP address of the editor.
  • history_date - filter by history date. Supports the standard lookup types
  • history_type - filter by history type id, exact.

Ordering

You can order the result set by providing the ordering query parameter with the value of one of:

  • length
  • history_date

You can reverse ordering by using the - sign, e.g. -length.

GET /api/v4/maps_history/78954/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://ja.localwiki.org/api/v4/maps_history/78954/", "page": "https://ja.localwiki.org/api/v4/pages_history/1399275/", "region": "https://ja.localwiki.org/api/v4/regions/340/", "points": { "type": "MultiPoint", "coordinates": [ [ -122.23156252396599, 37.805427624023146 ] ] }, "lines": null, "polys": { "type": "MultiPolygon", "coordinates": [ [ [ [ -122.23168322337726, 37.80530555769217 ], [ -122.23157325280593, 37.80516568978781 ], [ -122.23149010433002, 37.805205954817694 ], [ -122.231428413516, 37.80514237844516 ], [ -122.23110654843427, 37.80528860402116 ], [ -122.23115751040832, 37.805358537889354 ], [ -122.2309053827638, 37.80548357100503 ], [ -122.23103681100602, 37.805627676705676 ], [ -122.23168322337726, 37.80530555769217 ] ] ] ] }, "geom": { "type": "GeometryCollection", "geometries": [ { "type": "Point", "coordinates": [ -122.23156252396599, 37.805427624023146 ] }, { "type": "Polygon", "coordinates": [ [ [ -122.23168322337726, 37.80530555769217 ], [ -122.23157325280593, 37.80516568978781 ], [ -122.23149010433002, 37.805205954817694 ], [ -122.231428413516, 37.80514237844516 ], [ -122.23110654843427, 37.80528860402116 ], [ -122.23115751040832, 37.805358537889354 ], [ -122.2309053827638, 37.80548357100503 ], [ -122.23103681100602, 37.805627676705676 ], [ -122.23168322337726, 37.80530555769217 ] ] ] } ] }, "length": 0.00199764252464003, "history_comment": "dots for big map goodness", "history_date": "2021-07-23T19:22:33.226", "history_type": 1, "history_user": "https://ja.localwiki.org/api/v4/users/3242/", "history_user_ip": "108.245.190.192" }