- Export missing types
- Better TypeScript inference for
createGeocoder
,geocode
andgeodecode
- [Nominatim] Add
shape
andshapeThreshold
geocode and geodecode parameters - [Nominatim] Add
shape
in geocoded object
- Add LocationIQ provider
- [Nominatim] Add
countryCodes
to provider options - [Nominatim] Add
dedupe
geocode parameter - [Nominatim] Replace
type
withtypes
(now an array) in geocoded object - [Nominatim] Replace
category
withcategories
(now an array) in geocoded object - [Mapbox] Replace
geocodingMode
withsource
in provider options - [Mapbox] Replace
resultType
withtypes
in geocoded object - [Mapbox] Replace
locationTypes
withtypes
for geocode and geodecode - [MapQuest] Replace
openDomain
withsource
in provider options - [GoogleMaps] Replace
locationType
withprecision
in geocoded object - [GoogleMaps] Replace
resultType
withtypes
in geocoded object - [GoogleMaps] Replace
locationTypes
withprecisions
for geodecode - [GoogleMaps] Replace
resultTypes
withtypes
for geodecode - [Yandex] Replace
locationType
withtypes
(now an array) in geocoded object - [Yandex] Replace
locationTypes
withtypes
for geodecode
- Module is side-effect free
- Export ES module as well as CommonJS
## 0.10.0
- [Nominatim] Add
subLocalityLevels
- Introduce async / await (or Promise) syntax (providers return a promise if no callback is given)
- [Bing] Better Bing provider
- [Mapbox] Add
fuzzyMatch
geocode parameter - [OpenCage] Add
precision
toOpenCageGeocoded
- [OpenCage] Replace
minConfidence
withminPrecision
for geocode and geodecode
- [Yandex] Better Yandex provider
- [Nominatim] Remove
viewBox
parameter inGeocodeQuery
to usebounds
instead - [GeoJsonDumper] Use
bbox
member forbounds
- The
bounds
parameter inGeocodeQuery
is now an object withlatitudeSW
,longitudeSW
,latitudeNE
,longitudeNE
keys - The
latitude
andlongitude
parameters inGeocodeQuery
are replaced by acoordinates
parameter (an object withlatitude
andlongitude
keys) Geocoded
returns an object withlatitudeSW
,longitudeSW
,latitudeNE
,longitudeNE
keys for thebounds
- The
latitude
andlongitude
parameters inGeocoded
are replaced by acoordinates
parameter (an object withlatitude
andlongitude
keys)
- [MapQuest] Better MapQuest provider
- Add special chain provider
- Add GeoPlugin provider
- Add
errorCallback
parameter togeocode
andgeodecode
- Add
body
parameter toexecuteRequest
- [MapQuest] Fix geocode request (bad encoded query)
- [Google] Better Google Maps provider
- [Nominatim] Better handling of geodecode errors
- [ExternalLoader] Add
getOptions
method to interface - [ExternalLoader] Rename
JSONPCallback
in params tojsonpCallback
- Rename
GoogleAPIProvider
toGoogleMapsProvider
- Add Node examples
- Add OpenCage Provider
- Add time zone to
Geocoded
- [Mapbox] Add
countryCodes
,proximity
andreverseMode
to geo(de)code parameters - [Mapbox] Add
resultType
toGeocoded
- [Mapbox] Add admin levels to
Geocoded
- Rename
ExternalURILoader
toExternalLoader
- [Nominatim] Fix error when no result is received
- Fix TypeScript types for the library to be usable in a TS project
- Use relative paths for build files
- Missing types folder when publishing
- Better Nominatim support
- Better GeoJSON support
- Library rewritten in TypeScript
- Library can be used as a module as well
- Add Mapbox provider
- Formatted address, bounds and country support
- Better handling of provider options (JSONP, SSL)
- The methods
geocode
andgeodecode
can take an object or aQuery