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/80524/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://zh.localwiki.org/api/v4/maps_history/80524/", "page": "https://zh.localwiki.org/api/v4/pages_history/1421914/", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "points": null, "lines": null, "polys": { "type": "MultiPolygon", "coordinates": [ [ [ [ 121.58803239999999, 23.973032 ], [ 121.58892885767213, 23.972133996599734 ], [ 121.5869976, 23.9708408 ], [ 121.58697089999998, 23.9708871 ], [ 121.5868841, 23.970985499999987 ], [ 121.58690570000002, 23.9710017 ], [ 121.5860848, 23.971813099999988 ], [ 121.5865586, 23.97230350000001 ], [ 121.586719, 23.9724694 ], [ 121.587014, 23.9727747 ], [ 121.5871364, 23.9729503 ], [ 121.5873099, 23.97286170000001 ], [ 121.58803239999999, 23.973032 ] ] ] ] }, "geom": { "type": "GeometryCollection", "geometries": [ { "type": "Polygon", "coordinates": [ [ [ 121.58803239999999, 23.973032 ], [ 121.58892885767213, 23.972133996599734 ], [ 121.5869976, 23.9708408 ], [ 121.58697089999998, 23.9708871 ], [ 121.5868841, 23.970985499999987 ], [ 121.58690570000002, 23.9710017 ], [ 121.5860848, 23.971813099999988 ], [ 121.5865586, 23.97230350000001 ], [ 121.586719, 23.9724694 ], [ 121.587014, 23.9727747 ], [ 121.5871364, 23.9729503 ], [ 121.5873099, 23.97286170000001 ], [ 121.58803239999999, 23.973032 ] ] ] } ] }, "length": 0.00744736630336825, "history_comment": "\u5b9c\u660c\u570b\u4e2d\u4f4d\u7f6e", "history_date": "2022-06-13T06:47:12.821", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/112661/", "history_user_ip": "2001:b400:e232:42f5:745d:e1ba:e6fb:cccf" }