Legal Land Converter Home
Legal Land Converter for Android
Application Programming Interface (API) for Legal Land Converter
Sitemap for Legal Land Converter
Site Map
 

Canadian DLS GEOJSON API


Quarter/LSD Section Township Range Meridian

Latitude Longitude

COMMAND
  Please setup an account before proceeding.

SUCCESS
   Use "View Source" to see how this is coded.

PARSED GEOJSON
NAMEVALUE
DLSSHORT
QUARTER
SECTION
TOWNSHIP
RANGE
MERIDIAN
PROVINCE
COUNTY
LATITUDE
LONGITUDE
ZOOM
MGRS
UTM
NTS
PID

CORNERLATITUDELONGITUDE
SE (Start)
NE
NW
SW
SE (End)
RAW GEOJSON

Commands & Parameters

forward

Legal Land Description to Latitude and Longitude

Field
Number
Field
Name
Field
Description
1 quarter Halves, Quarters and Legal Sub Divisions (LSD's) are used to subdivide a section.
Leave this field empty for the entire section.
Halves are N,S,E,W
Quarters are NW,NE,SW,SE
LSD's are numbers 1 to 16
2 section A township is usually divided into 36 sections.
Sections number from 1 to 36.
In rare cases: 6A, 7A, 18A, 19A, 30A, 31A, 36A are used.
3 township Townships run south to north numbered 1 to 127.
In rare cases: 19A, 27A, 42A, 43A, 45A, 46A, 47A, 48A are used.
4 range Ranges run east and west numbered 1 to 34
In rare cases: 13A, 21A, 24A, 26A, 29A are used.
5 meridian Meridians run north / south; generally every 4 degrees of Longitude.
Valid Meridians are: E1, E2, W1, W2, W3, W4, W5, W6, W7, COAST
6 cmd forward
7 output Valid output types are: csv, geojson & kml
 

reverse1

Decimal Latitude and Longitude to Legal Land Description

Field
Number
Field
Name
Field
Description
1 latitude Latitude in decimal format
ie: 49.104474
2 longitude Longitude in decimal format
ie: -112.037271
3 cmd reverse1
4 output Valid output types are: csv, geojson & kml
 

reverse2

Latitude & Longitude in Degrees, Minutes, Seconds to Legal Land Description

Field
Number
Field
Name
Field
Description
1 latdeg Latitude Degrees
0 - 89
2 latmin Latitude Minutes
0 - 59
3 latsec Latitude Seconds
0 - 59.999
4 northsouth N or S
5 longdeg Longitude Degrees
-179 to 179
6 longmin Longitude Minutes
0 to 59
7 longsec Longitude Seconds
0 to 59.999
8 eastwest E or W
9 cmd reverse2
10 output Valid output types are: csv, geojson & kml

Python Example dls4.py

import json
import urllib2


username = 'DEVELOPX'
password = 'TEST1234'
url1 = 'http://legallandconverter.com/'
url2 = 'http://legallandconverter.com/cgi/shopats201703.cgi?quarter=§ion=2&township=2&range=2&meridian=W4&cmd=forward&output=geojson'

# INSTALL PASSWORD AUTHENTICATION

auth = urllib2.HTTPBasicAuthHandler()
auth.add_password("Administrator",url1,username,password)
opener = urllib2.build_opener(auth)
urllib2.install_opener(opener)

# GET DATA FROM MOTHERSHIP

feed = urllib2.urlopen(url2)

data = json.load(feed)


# RETRIEVE AND PRINT DATA OUT OF THE JSON BLOB

# Conversion Status

print data['success']
print

# Text Data

print data['features'][0]['properties']['DLSSHORT']
print data['features'][0]['properties']['QUARTER']
print data['features'][0]['properties']['SECTION']
print data['features'][0]['properties']['TOWNSHIP']
print data['features'][0]['properties']['RANGE']
print data['features'][0]['properties']['MERIDIAN']
print data['features'][0]['properties']['PROVINCE']
print data['features'][0]['properties']['COUNTY']
print data['features'][0]['properties']['LATITUDE']
print data['features'][0]['properties']['LONGITUDE']
print data['features'][0]['properties']['ZOOM']
print data['features'][0]['properties']['MGRS']
print data['features'][0]['properties']['UTM']
print data['features'][0]['properties']['NTS']
print data['features'][0]['properties']['PID']
print

# Polygon Coordinate Pairs

print data['features'][0]['geometry']['coordinates'][0][0]
print data['features'][0]['geometry']['coordinates'][0][1]
print data['features'][0]['geometry']['coordinates'][0][2]
print data['features'][0]['geometry']['coordinates'][0][3]
print data['features'][0]['geometry']['coordinates'][0][4]
print

# Print Longitude and Latitude Seperately

print data['features'][0]['geometry']['coordinates'][0][0][0]
print data['features'][0]['geometry']['coordinates'][0][0][1]

print



Notes

The 2 forms on top of this page are live. They let you exercise the API.

Enter a latitude and longitude or a legal land description and then click "Calc".

Underneath will be displayed the string your app should be sending and the status code and results your app should be receiving.

"Success" will be set to "true" if the conversion was successful or "false" if it was not.

If "success==false" an additional field called "errormessage" will be set as follows:

{
   "success" : false,
   "errormessage" : "inputdls(): Range '233' is invalid"
}

Google Earth may be used to view KML files.

Excel and Open Office will read CSV files.

An account and a purchase are required to use the API exercise forms.

If purchase for evaluation is difficult, we can setup an evaluation account for you.

Modern Web Browsers do not allow "Cross Domain Scripting". You will need to use a web proxy or some other solution to incorporate GeoJSON results from legallandconverter.com's server into webpages from your server.

 
Login
Becoming a Subscriber
Create Account
Purchase Credits Online

Public Land Survey System (PLSS)
US PLSS Batch Converter

Military Grid Reference System

National Topographic System

Federal Permit System

Universal Transverse Mercator

Canada DLS & ATS

Canadian Batch Converter
Canadian Batch Converter Help
Contact

Legal Land Converter
Edmonton, Alberta
Phone: 780.455.7226
contact@legallandconverter.com
Copyright © 2018