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/80356/
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/80356/", "page": "https://zh.localwiki.org/api/v4/pages_history/1419212/", "region": "https://zh.localwiki.org/api/v4/regions/2638/", "points": { "type": "MultiPoint", "coordinates": [ [ 139.1364401102787, 35.20135827955765 ] ] }, "lines": { "type": "MultiLineString", "coordinates": [ [ [ 139.1364240170182, 35.201327595517085 ], [ 139.13630063540708, 35.20119170891338 ], [ 139.13611019856725, 35.201251981225504 ], [ 139.13591976172742, 35.20133855410468 ], [ 139.13558180339194, 35.20138019672253 ] ], [ [ 139.13653666980233, 35.201919357110164 ], [ 139.13676733977593, 35.20180100513692 ], [ 139.13671906000965, 35.20147663217678 ], [ 139.13660640723054, 35.2015029327353 ], [ 139.13650448329145, 35.201279377716 ], [ 139.1364186525988, 35.201301294901796 ] ], [ [ 139.13672442443274, 35.2014853990302 ], [ 139.13671906000965, 35.20140649731192 ], [ 139.1368799925512, 35.20142731860616 ], [ 139.13694436556818, 35.201272802559025 ], [ 139.13707311160226, 35.20104267173111 ], [ 139.1369819164941, 35.200525422919185 ], [ 139.1369819164941, 35.20051665596152 ] ] ] }, "polys": null, "geom": { "type": "GeometryCollection", "geometries": [ { "type": "Point", "coordinates": [ 139.1364401102787, 35.20135827955765 ] }, { "type": "LineString", "coordinates": [ [ 139.1364240170182, 35.201327595517085 ], [ 139.13630063540708, 35.20119170891338 ], [ 139.13611019856725, 35.201251981225504 ], [ 139.13591976172742, 35.20133855410468 ], [ 139.13558180339194, 35.20138019672253 ] ] }, { "type": "LineString", "coordinates": [ [ 139.13653666980233, 35.201919357110164 ], [ 139.13676733977593, 35.20180100513692 ], [ 139.13671906000965, 35.20147663217678 ], [ 139.13660640723054, 35.2015029327353 ], [ 139.13650448329145, 35.201279377716 ], [ 139.1364186525988, 35.201301294901796 ] ] }, { "type": "LineString", "coordinates": [ [ 139.13672442443274, 35.2014853990302 ], [ 139.13671906000965, 35.20140649731192 ], [ 139.1368799925512, 35.20142731860616 ], [ 139.13694436556818, 35.201272802559025 ], [ 139.13707311160226, 35.20104267173111 ], [ 139.1369819164941, 35.200525422919185 ], [ 139.1369819164941, 35.20051665596152 ] ] } ] }, "length": 0.00317659984738994, "history_comment": null, "history_date": "2022-05-13T04:03:27.645", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:7957:f1c1:640a:889b" }