Skip to content

Commit bf1d822

Browse files
authored
Merge pull request #260 from freyfogle/patch-4
alpha order geocoders list, readability
2 parents 06eb626 + e2d43be commit bf1d822

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

README.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,37 +111,36 @@ var geocoder = NodeGeocoder({
111111
});
112112
```
113113

114-
## Geocoder Provider
115-
114+
## Geocoder Providers (in alphabetical order)
115+
* `agol` : ArcGis Online Geocoding service. Supports geocoding and reverse. Requires a client_id & client_secret and 'https' http adapter
116+
* `datasciencetoolkit` : DataScienceToolkitGeocoder. Supports IPv4 geocoding and address geocoding. Use `options.host` to specify a local instance
117+
* `freegeoip` : FreegeoipGeocoder. Supports IP geocoding
118+
* `geocodio`: Geocodio, Supports address geocoding and reverse geocoding (US only)
116119
* `google` : GoogleGeocoder. Supports address geocoding and reverse geocoding. Use `options.clientId`and `options.apiKey`(privateKey) for business licence. You can also use `options.language` and `options.region` to specify language and region, respectively. Note that 'https' is required when using an apiKey
117120
* `here` : HereGeocoder. Supports address geocoding and reverse geocoding. You must specify `options.appId` and `options.appCode` with your license keys. You can also use `options.language`, `options.politicalView` ([read about political views here](https://developer.here.com/rest-apis/documentation/geocoder/topics/political-views.html)), `options.country`, and `options.state`.
118-
* `freegeoip` : FreegeoipGeocoder. Supports IP geocoding
119-
* `datasciencetoolkit` : DataScienceToolkitGeocoder. Supports IPv4 geocoding and address geocoding. Use `options.host` to specify a local instance
120-
* `openstreetmap` : OpenStreetMapGeocoder. Supports address geocoding and reverse geocoding. You can use `options.language` and `options.email` to specify a language and a contact email address.
121-
* For `geocode`, you can use an object as value, specifying one or several parameters from https://wiki.openstreetmap.org/wiki/Nominatim#Parameters
122-
* For `reverse`, you can use additional parameters from https://wiki.openstreetmap.org/wiki/Nominatim#Parameters_2
123-
* You should specify a specific `user-agent` or `referrer` header field as required by
124-
https://wiki.openstreetmap.org/wiki/Nominatim_usage_policy
125-
* Set `options.osmServer` to use custom nominatim server. Example: you can setup local nominatim server from instructions at [this page](http://wiki.openstreetmap.org/wiki/Nominatim/Installation) and set `options.osmServer: http://localhost:8000` to use local server.
126121
* `locationiq` : LocationIQGeocoder. Supports address geocoding and reverse geocoding just like openstreetmap but does require only a locationiq api key to be set.
127122
* For `geocode` you can use simple `q` parameter or an object containing th edifferent parameters defined here: http://locationiq.org/#docs
128123
* For `reverse`, you can pass over `{lat, lon}` and additional parameters defined in http://locationiq.org/#docs
129124
* No need to specify referer or email addresses, just locationiq api key, note that there are rate limits!
130125
* `mapquest` : MapQuestGeocoder. Supports address geocoding and reverse geocoding. Needs an apiKey
131-
* `openmapquest` : Open MapQuestGeocoder (based on OpenStreetMapGeocoder). Supports address geocoding and reverse geocoding. Needs an apiKey
132-
* `agol` : ArcGis Online Geocoding service. Supports geocoding and reverse. Requires a client_id & client_secret and 'https' http adapter
133-
* `tomtom`: TomTomGeocoder. Supports address geocoding. You need to specify `options.apiKey`
134-
* `virtualearth`: VirtualEarthGeocoder (Bing maps). Supports address geocoding. You need to specify `options.apiKey`
135126
* `nominatimmapquest`: Same geocoder as `openstreetmap`, but queries the MapQuest servers. You need to specify `options.apiKey`
136-
* `opencage`: OpenCage Geocoder. Uses multiple open sources. Supports address and reverse geocoding. You need to specify `options.apiKey`
137-
* `smartyStreet`: Smarty street geocoder (US only), you need to specify `options.auth_id` and `options.auth_token`
138-
* `geocodio`: Geocodio, Supports address geocoding and reverse geocoding (US only)
139-
* `yandex`: Yandex support address geocoding, you can use `options.language` to specify language
140-
* `teleport`: Teleport supports city and urban area forward and reverse geocoding; for more information, see [Teleport API documentation](https://developers.teleport.org/api/)
127+
* `opencage`: OpenCage Geocoder. Aggregates many different open geocoder. Supports address and reverse geocoding with [many optional parameters](https://opencagedata.com/api#forward-opt). You need to specify `options.apiKey` which can be obtained at [OpenCage](https://opencagedata.com).
141128
* `opendatafrance`: OpendataFranceGeocoder supports forward and reverse geocoding in France; for more information, see [OpendataFrance API documentation](https://adresse.data.gouv.fr/api/)
129+
* `openmapquest` : Open MapQuestGeocoder (based on OpenStreetMapGeocoder). Supports address geocoding and reverse geocoding. Needs an apiKey
130+
* `openstreetmap` : OpenStreetMapGeocoder. Supports address geocoding and reverse geocoding. You can use `options.language` and `options.email` to specify a language and a contact email address.
131+
* For `geocode`, you can use an object as value, specifying [one or several parameters](https://wiki.openstreetmap.org/wiki/Nominatim#Parameters)
132+
* For `reverse`, you can use [additional parameters](https://wiki.openstreetmap.org/wiki/Nominatim#Parameters_2)
133+
* You should specify a specific `user-agent` or `referrer` header field as required by the [OpenStreetMap Usage Policy](https://wiki.openstreetmap.org/wiki/Nominatim_usage_policy)
134+
* Set `options.osmServer` to use custom nominatim server. Example: you can setup local nominatim server by following [these instructions](http://wiki.openstreetmap.org/wiki/Nominatim/Installation) and set `options.osmServer: http://localhost:8000` to use local server.
135+
* `nominatimmapquest`: Same geocoder as `openstreetmap`, but queries the MapQuest servers. You need to specify `options.apiKey`
142136
* `pickpoint`: PickPoint Geocoder. Supports address geocoding and reverse geocoding. You need to specify `options.apiKey` obtained at [PickPoint](https://pickpoint.io). `https` is required.
143137
* As parameter for `geocode` function you can use a string representing an address like "13 rue sainte catherine" or an object with parameters described in [Forward Geocoding Reference](https://pickpoint.io/api-reference#forward-geocoding).
144138
* For `geocode` function you should use an object where `{lat, lon}` are required parameters. Additional parameters like `zoom` are available, see details in [Reverse Geocoding Reference](https://pickpoint.io/api-reference#reverse-geocoding).
139+
* `smartyStreet`: Smarty street geocoder (US only), you need to specify `options.auth_id` and `options.auth_token`
140+
* `teleport`: Teleport supports city and urban area forward and reverse geocoding; for more information, see [Teleport API documentation](https://developers.teleport.org/api/)
141+
* `tomtom`: TomTomGeocoder. Supports address geocoding. You need to specify `options.apiKey`
142+
* `virtualearth`: VirtualEarthGeocoder (Bing maps). Supports address geocoding. You need to specify `options.apiKey`
143+
* `yandex`: Yandex support address geocoding, you can use `options.language` to specify language
145144

146145

147146
## Http adapter

0 commit comments

Comments
 (0)