Submitting Form

  • Skip to main content
  • Skip to footer

Site menu

  • Canada.ca
  • Services
  • Departments
  • Français
Government of Canada
Symbol of the Government of Canada

Natural Resources Canada

Site menu

  • Energy

    Energy Source and Distribution

    • Oil Sands
    • Alternative Fuels
    • Crude Oil and Petroleum Products Market
    • Natural Gas
    • Offshore Oil and Gas
    • Coal and CO2 Capture & Storage
    • Infrastructure for Crude Oil and Petroleum Products
    • Electricity Infrastructure
    • Renewables
    • Uranium / Nuclear Energy

    Energy Efficiency

    • Energy efficient products
    • Communities and Infrastructure
    • Housing
    • Buildings
    • Industry
    • Transportation
    • Statistics and Analysis

    Energy Resources

    • Funding, Grants and Incentives
    • Energy Offices and Labs
    • Energy Publications
    • Regulations and Standards
    • Software Tools
    • Petroleum Products and Crude Oil Prices
    Energy - Main Page
  • Mining/Materials

    Mining

    • Minerals and Metals Markets
    • Canadian Mineral Exploration
    • Green Mining Initiative
    • Extraction Innovation
    • Radioactive Waste Management
    • National Collaboration
    • Aboriginal Participation
    • Taxation
    • Policy

    Materials

    • Materials Technology
    • NRCan National Non-Destructive Testing (NDT) Certification Body

    Mining/Materials Resources

    • Mining/Materials Publications
    • Statistics
    • Kimberley Process for Rough Diamonds
    • Certified Reference Materials
    Mining/Materials - Main Page
  • Forests

    Forest Topics

    • Forests in Canada
    • Boreal forest
    • Climate change
    • Fire
    • Industry
    • Innovation
    • Insects and diseases
    • Inventory
    • Remote sensing

    Forest Resources

    • Employees
    • Federal programs
    • Glossary
    • Publications
    • Research centres
    • Research projects
    • Statistics
    • Videos
    Forests - Main Page
  • Earth Sciences

    Sciences

    • Geology
    • Earth Sciences Land Surface and Vegetation
    • Earth Sciences Water
    • Earth Sciences Permafrost, Ice, and Snow
    • Resource Development and Infrastructure

    Geomatics

    • Canada Lands Surveys
    • Geodetic Reference Systems
    • Satellite Imagery and Air Photos
    • Canada's Spatial Data Infrastructure

    Geography

    • International Boundaries
    • The Atlas of Canada
    • Topographic Information
    • Place Names

    Earth Sciences Resources

    • Earth Sciences Publications
    • Earth Sciences Data
    • Earth Sciences Maps
    • Earth Sciences Tools and Applications
    • Earth Sciences Federal Programs
    Earth Sciences - Main Page
  • Hazards

    Natural Hazards

    • Earthquakes
    • Space Weather
    • Marine Geological Hazards
    • Floods
    • Landslides
    • Forest Fires

    Hazards Resources

    • Hazards Publications
    • Hazards Data
    • Hazards Maps
    • Hazards Tools and Applications
    • Hazards Federal Programs
    Hazards - Main Page
  • Explosives

    Explosives

    • Acquisition, Storage and Sale
    • Act and Regulation
    • Authorization and Classification
    • Importation
    • Fireworks Use
    • Manufacturing
    • Restricted Components

    Explosives Resources

    • CanmetCERL
    • Explosives Laboratory and Offices
    • Explosives Publications
    Explosives - Main Page
  • The North

    The North Boundaries

    • Aboriginal Land Claims
    • International Boundaries
    • Lands Survey System

    The North Science

    • Geology of Energy and Mines
    • Permafrost, Ice and Snow
    • Land Surface and Vegetation
    • Marine and Fresh Water

    Polar Shelf

    • Polar Continental Shelf Program
    • Arctic Logistics Requests
    • Field Equipment Requests

    The North Resources

    • The North Publications
    • The North Data
    • The North Maps
    • The North Tools and Applications
    • The North Federal Programs
    The North - Main Page
  • Environment

    Impacts and Adaptation

    • Adaptation Platform
    • Tools for Adaptation
    • Impacts and Adaptation Assessments
    • Regional Adaptation Collaboratives
    • Adaptation 101

    Environment Science

    • Indicators of Change
    • Northern Development
    • Assessments

    Environment Resources

    • Climate Change Publications
    • Climate Change Data
    • Climate Change Federal Programs
    • Climate Change Maps
    • Climate Change Tools and Applications
    Environment - Main Page

Breadcrumb trail

  1. Home
  2. Earth Sciences
  3. Earth Sciences Resources
  4. Earth Sciences Tools and Applications
  5. GeoGratis
  6. Geolocation Service

Geolocation Service

Description

The Geolocation service allows end users to get the geographic location of named features. The current service allows the location of following features:

  • Street addresses
  • Street names
  • Streets intersection
  • Place names located in Canada such as towns, villages, municipalities, parks, etc, but also of natural geographical features such as lakes, islands, rivers, mountains, etc.
  • Postal codes (FSA code only - first three characters)
  • Map numbers from the National Topographic System (NTS)

Request Examples

The service accepts a single parameter named q corresponding to the terms to be localized. Here are query samples for each feature types.

  • Street address (excluding postal code): http://geogratis.gc.ca/services/geolocation/en/locate?q=2144%20King%20West%20Street,%20Sherbrooke,%20QC
  • Street name: http://geogratis.gc.ca/services/geolocation/en/locate?q=King%20West%20Street,%20Sherbrooke,%20QC
  • Intersection: http://geogratis.gc.ca/services/geolocation/en/locate?q=King%20West%20Street,%20Farwell%20Street,%20Sherbrooke,%20QC
  • Place name: http://geogratis.gc.ca/services/geolocation/en/locate?q=Sherbrooke,%20QC
  • Postal Code: http://geogratis.gc.ca/services/geolocation/en/locate?q=J1J
  • NTS number: http://geogratis.gc.ca/services/geolocation/en/locate?q=021e

Request Parameters

Request Parameters are summarized in the following table. All parameter values need to be URL encoded.

Parameter Description
q Terms to locate.
expand List of additional properties to be included into the response. Available properties are score and component.
callback Name of the callback function used into JSONP format (JSON with padding) allowing support for asynchronous and cross-domain invocation of the service through Javascript.

Wildcard Search

The q parameter also supports asterisk (*). Those allow to find any terms starting with the provided characters.

http://geogratis.gc.ca/services/geolocation/en/locate?q=Otta*

Response Examples

The service returns a list of locations related to the requested terms, each element includes the Type of the location and a Point geometry with coordinates expressed as longitude/latitude in decimal degrees. In some cases, a bbox property is also included and contains coordinates of the bounding box for the feature's geometry. Results are sorted by relevancy.

Responses are in JSON format. It is also possible to provide a value to the callback parameter in order to receive a response wrapped into a function call. This is useful for asynchronous and cross-domain invocations of the service form applications hosted on distinct domains.

[
...
{
    "title": "Ottawa, Carleton; Russell, Ontario (City)", 
    "qualifier": "LOCATION",
    "type": "ca.gc.nrcan.geoloc.data.model.Geoname",
    "bbox": [-76.3555857, 44.9617738, -75.2465783, 45.5376514],
    "geometry": {"type":"Point","coordinates":[-75.58429,45.333389]}
},
...
{
    "title": "031G05 OTTAWA", 
    "qualifier": "LOCATION",
    "type": "ca.gc.nrcan.geoloc.data.model.NTS",
    "bbox": [-76.0, 45.25, -75.5, 45.5],
    "geometry": {"type":"Point","coordinates":[-75.75,45.375]}
},
...
{
    "title": "Ottawa Avenue, Brandon, Manitoba", 
    "qualifier": "INTERPOLATED_CENTROID",
    "type": "ca.gc.nrcan.geoloc.data.model.Street",
    "geometry": {"type":"Point","coordinates":[-99.9691476,49.8254685]}
},
...
]

Additional Functionalities

As experimental work, the Geolocation service offers two additional functionalities allowing a suggestion of similar terms or an auto-completion. These two functions take only one term at a time.

Suggestion of similar terms

The Suggestion functionality provides the opportunity to obtain terms having phonetic or syntactic proximity with a given term. The terms are sorted by frequency of appearance of the suggested term in the index. However if the provided term already exists in the index, it will be proposed first.

http://geogratis.gc.ca/services/geolocation/fr/suggest?q=Sherbrooke

Auto-completion

The Auto-complete functionality provides the opportunity to obtain terms starting with a given character string. The terms are sorted by frequency of appearance of the suggested term in the index. However if the provided character string exactly correspond to a term in the index, this term will be proposed first.

http://geogratis.gc.ca/services/geolocation/fr/autocomplete?q=Sherb

Date modified:
2014-01-28

Footer

Site Footer

  • Terms and Conditions
  • Transparency

About Us

  • Our Deputy Minister
  • Acts and Regulations
  • Career Opportunities
  • Publications and Reports

News

  • News Releases
  • Media Advisories
  • Photo Gallery

Contact Us

  • Find an Employee

Stay Connected

  • Twitter
  • YouTube
  • Feeds

Government of Canada Footer

  • Health
  • Travel
  • Service Canada
  • Jobs
  • Economy
  • Canada.ca