Releases: docentYT/osm_easy_api
Releases · docentYT/osm_easy_api
v3.0.1
v3.0.0
Added
- Support for
oAuth2
:access_token
parameter inApi
class constructor. Unauthorized
exception. (No access token.)Forbidden
exception. (The access token does not support the needed scope or you must be a moderator.)gpx.create()
endpoint.GpxFile
data class.Visibility
enum.gpx.update()
endpoint.gpx.delete()
endpoint.gpx.get_details()
endpoint.gpx.get_file()
endpoint.gpx.list_details()
endpoint.order
parameter inchangeset.get_query()
.
Fixed
- Types in
elements
endpoint. - Missing documentation.
misc.get_map_in_bbox()
endpoint should not yieldstring
.
Changed
- The way http errors are handled.
- In
elements.get()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.history()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.version()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.getQuery()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.relations()
endpoint theelement
parameter has been renamed toelement_type
. - In
elements.full()
endpoint theelement
parameter has been renamed toelement_type
. - Type of
user_id
parameter inchangeset.get_query()
was changed fromstr
toint
. OsmChange_parser_generator()
andOsmChange_parser()
fromdiff
module are now 'private' functions. UseDiff.get()
instead.notes.search()
endpoint throwsLimitsExceeded
exception instead ofValueError
.page_number
paremeter ingpx.get()
has now default value 0.- Now classes are imported from individual modules - not from the main library. See examples in the
README.md
. gpx.get()
renamed togpx.get_gps_points()
Removed
- Support for
HTTP Basic authentication
:username
andpassword
parameters inApi
class constructor. - Most
# type: ignore
. NotAModerator
exception. It is now replaced byForbidden
exception.
v2.2.0
v2.1.1
v2.1.0
v2.0.0
Added
- Missing status code handling in
notes.get()
. - Support for hide note endpoint.
Fixed
- Problems with parsing data chunks received by api.
- Small grammar corrections in the documentation.
Changed
- Working method of parser used in
notes
endpoint. - Working method of parsers in
misc
endpoint. - Working method of parsers in
user
endpoint. - Working method of parsers in
changeset
endpoint. - Working method of parsers in
elements
endpoint.
Removed
EmptyResult
api exception, which was used in endpointsnotes
,user
andchangeset
. From now on when the results are empty an empty list will be returned.- Unused imports.
v1.1.1
v1.0.2
v1.0.1
v1.0.0
Added
to_xml()
method inOsmChange
.upload()
method inchangeset
endpoint
has new optional arguments.- Test for
to_xml()
method inOsmChange
. # pragma: no cover
for unexpected api errors (Those that are not in the specification on the wiki).
Changed
- Private
_to_xml()
method inOsmChange
is now static.