Skip to content

Intelliware/torontoopendata-addresspoints-geocoder

Repository files navigation

Toronto Address Points Open Dataset Geocoder

Primitive Geocoder REST web service to provide address geocoding for Toronto, Canada, addresses based on the Toronto Address Points Open Dataset. The implementation is written in Node.js and accesses address data from a MongoDB.

Given a well formed Toronto street address, such as "200 Adelaide St W", the service will return details associated with that address.

  • Primitive address parsing at the moment....
  • Every Toronto address is geoceded so no need for address interpolation
  • Returns Latitude and Longitude of address
  • For more details see the source dataset information.

There is a instance of the Geocoder service running on Heroku for you to try out and use.

Requirements

Setup Dataset

The Geocoder service requires a MongoDB collection with the content of the Toronto Address Points Open Dataset. You may use the same read-only database of addresses that is used by the test instance or you can create your own Mongo DB instance populated from the published Toronto Address Points open dataset using the sibling open-source Exporter tool.

Building and Running

npm install
node server.js

You should then be able to hit the local service at: http://localhost:8081

By default the code will use a read-only database of addresses hosted on MongoHQ. You can instead use an alternative Mongo DB by setting the MONGO_URL and MONGO_COLLECTION environment variables.

Licence

This tool is made available under the MIT licence.

Contains public sector Datasets made available under the City of Toronto's Open Data Licence v2.0.

David Jones

About

Toronto Address Points Open Dataset Geocoder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •