💾Contributing
Compass is open to contributions, if there is a bug or feature. Feel free to open up a PR or an issue.
Please make every effort to follow existing conventions and style in order to keep the code as readable as possible.
Contribute code changes through GitHub by forking the repository and sending a pull request. We squash all pull requests on merge.
If you add, remove, or change public
objects, make sure you update the binary-compatibility definitions by running the following command:
Then commit and push the changed files.
Custom Geocoder API
Compass includes a template module: compass-geocoder-web-template
If there is a Geocoding Web API that you would wish to add to Compass, follow these steps:
Clone the repo:
git clone git@github.com:jordond/compass
Make a copy of the
compass-geocoder-web-template
moduleRename the copy to match the web service you're adding:
ex:
compass-geocoder-web-myapi
Search for the word "Template" in the module and replace it with your service name
Implement the
HttpApiPlatformGeocoder
interfaceCustomize the URL, query parameters, and the response models
Implement the
ForwardEndpoint
andReverseEndpoint
Finish the implementation
Run
./gradlew apiDump
and commit the changesPush & open a Pull Request
Last updated