tMapper WW1 Trenches

WW1 France & Flanders Public API

No Daily Limits - Free - Simple to Use!

Logo

Welcome! Please feel free to use one of our public APIs to retrieve WW1-related data from France and Flanders.

  1. Convert a trench map reference to modern latitude and longitude;
  2. Search the Gazetteer of the Western Front;
  3. Find historic trenches & military locations, farms, communes, villages and cities;
  4. Find modern farming localities, communes, villages and cities in France and Flanders, with latest population & elevation data;
  5. Find major populated localities for a map sheet (eg 28) or quadrant (36NW or 51bSW1).
  6. Find nearby locations where an action resulted in a Victoria Cross (direct Wikipedia link provided).
  7. Find nearby CWGC cemeteries and memorials (+ Wikipedia link).
  8. Discover WW1 military engagements (+ Wikipedia link).

Simple and Fast - Easy to Configure!

Simple syntax, conforms with RESTful API, CSV and free text options.

Standard Syntax, JSON Encoded Returns

Try it now! Paste any of the following lines into your browser:

api.tmapper.com/convert.php?term=62d.J.19.b.40.30
api.tmapper.com/search.php?term=Minden%20Post
api.tmapper.com/nearby.php?lat=50.89979&lon=3.02133&radius=1250
api.tmapper.com/geonames.php?lat=50.764098&lon=2.899388&radius=2750&type=e
api.tmapper.com/quadrants.php?sheet=36c&quadrant=NW3&dms=1
api.tmapper.com/quadrant.php?sheet=28&quadrant=NW3&min=1&limit=25
api.tmapper.com/vcnearby.php?lat=50.020749&lon=2.695609&radius=3750
api.tmapper.com/cwgc.php?lat=50.293186&lon=2.774403&radius=4000
api.tmapper.com/battles.php?lat=50.374957&lon=2.804310

Release Notes, Options & Errors

Note: Coverage is France and Flanders unless documented otherwise for an individual API.
Note: We parse for HTML special characters, check terms with regular expressions and return HTTP response code 400 or 404 when in doubt.
Note: An empty page means that no records were retrieved from the database. Your JSON encoded page will simply appear as [].
Distance: Radius is slightly over-sampled - for computational efficiency we calculate a bounding box to avoid a great-circle calculation for each Point of Interest. A radius of 400 m becomes 566 m at each vertex.
Tip: - for APIs 2 onwards if you append &disp=txt then your browser will display the result as human readable free text.
Tip: - appending &disp=csv will display the result in csv, ready for import into Excel.

API #1 - Convert

api.tmapper.com/convert.php?term=62d.J.19.b.40.30

API #2 - Search

api.tmapper.com/search.php?term=Minden%20Post

API #3 - WW1 Locations

api.tmapper.com/nearby.php?lat=50.89979&lon=3.02133&radius=1250

API #4 - Modern Population & Elevation

api.tmapper.com/geonames.php?lat=50.764098&lon=2.899388&radius=2750&type=e

API #5 - Map Sheet Cities

api.tmapper.com/quadrant.php?sheet=28&quadrant=NW3&min=1&limit=25

API #6 - Victoria Cross Recipients

api.tmapper.com/vcnearby.php?lat=50.020749&lon=2.695609&radius=3750

API #7 - Commonwealth War Grave Commission (CWGC) Data

api.tmapper.com/cwgc.php?lat=50.293186&lon=2.774403&radius=4000

Sub-Notes

  1. The lat, lon & distance are to the nearest public entrance. These are souced from driving directions Point of Interest data. In many cases this is the same as the main cemetery entrance. In a small number, there is a cemetery and separate cemetery extension off the main road. Buttes New British Cemetery, Polygon Wood is just in from the main road and has 3 separate cemeteries. We show the same lat, lon so the individul CWGC website coordinates will differ marginally from ours.
  2. We return the total number of WW1 casualties. The direct link to the CWGC website will display the number of identified casualties.

API #8 - Military Engagements of WW1

api.tmapper.com/battles.php?lat=50.374957&lon=2.804310

API #9 - Quadrant Boundaries

api.tmapper.com/quadrants.php?sheet=36c&quadrant=NW3

Acknowledgements

All content on this website is © tMapper 2020

Data is sourced from Public Domain, original Copyrighted Material or under Creative Commons

To get in touch with us use the feedback form on the tMapper website