Skip to content

Complete rewrite (TypeScript)#28

Open
alanpoulain wants to merge 61 commits intogeocoder-php:masterfrom
alanpoulain:ts
Open

Complete rewrite (TypeScript)#28
alanpoulain wants to merge 61 commits intogeocoder-php:masterfrom
alanpoulain:ts

Conversation

@alanpoulain
Copy link

@alanpoulain alanpoulain commented Jul 4, 2020

This PR provides a complete rewrite of GeocoderJS in TypeScript (and therefore a module support) and some more goodies (Mapbox, OpenCage and GeoPlugin providers, formatted address, time zone, bounds and country support).

I tried to not break everything and to follow the old API as much as possible.

Since the project seems not maintained anymore, I took the liberty to fork it and to publish it under a new name: Universal Geocoder (https://github.com/universal-geocoder/universal-geocoder-js).

I will maintain this branch (ts) without the specific changes for Universal Geocoder in case you want to revive the project.

Thank you for having creating this library and for maintaining the PHP version 🙂

* feat: better Yandex provider

Make the use of bounds more coherent too.

* chore: bump dev dependencies
The "latitude" and "longitude" parameters in GeocodeQuery are replaced by a "coordinates" parameter
(an object with "latitude" and "longitude" keys).
The same parameters in Geocoded are replaced by a "coordinates" parameter too.
The GeoJsonDumper now uses "bbox" instead of "bounds".
The "bounds" parameter in GeocodeQuery is now an object with "latitudeSW", "longitudeSW",
"latitudeNE", "longitudeNE" keys.
The same object is returned for the "bounds" field of Geocoded.
Add `precision` to `OpenCageGeocoded`.
Replace `minConfidence` with `minPrecision` for geocode and geodecode.
Use `FlatCoordinates`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant