Skip to content

Yet Another Php Api For Openstreetmap (read/write with Api, read with XApi or Overpass)

License

Notifications You must be signed in to change notification settings

Cyrille37/yapafo

Repository files navigation

Yet Another Php Api For OpenStreetMap

yapafo is a library which permits to authenticate, read and write objects in the OpenStreetMap database.

FEATURES

  • Read objects from API, XAPI and Overpass-API.
  • Write objects to API.
  • Authenticate with Basic or OAuth.
  • The class instance and its osm objects are serializable.
  • A bit of geometry stuff (is node inside/outside polygon)
  • ...

REQUIREMENTS

Requirements are covered in composer.json.

Php extensions:

Php libraries:

TUTORIALS / EXAMPLES

  • install dependencies
    • composer install
  • A web page to create OAuth Access Token
    • change directory cd examples-web
    • launch the php webserver php -S localhost:8000
    • then open a browser at http:https://localhost:8000/OAuthRequestAccess.php
  • Other command-line examples in examples-console

examples-web

  • the tool examples/OAuthRequestAccess.php is an easy way to get OAuth Access Token (and understand the protocol phases ;-)
  • Overpass-API requests are shown in examples/OApiQuery.php and ApiOApiQuery.php

BUG and Request

References

About

Yet Another Php Api For Openstreetmap (read/write with Api, read with XApi or Overpass)

Topics

Resources

License

Stars

Watchers

Forks