Services_OpenStreetMap
[ class tree: Services_OpenStreetMap ] [ index: Services_OpenStreetMap ] [ all elements ]

Class: Services_OpenStreetMap_Transport

Source Location: /Services_OpenStreetMap-1.0.0RC2/Services/OpenStreetMap/Transport.php

Class Overview


Services_OpenStreetMap_Transport


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 27]
Services_OpenStreetMap_Transport


[ Top ]


Method Detail

getObject   [line 78]

Services_OpenStreetMap_Object getObject( string $type, string $id, [string $version = null], [string $append = null])

Get object of specified type and id, optionally of specified version.

Returns false if the object is not found

  • Throws: Services_OpenStreetMap_Exception
  • Access: public

Parameters:

string   $type   —  object type
string   $id   —  id of object to retrieve
string   $version   —  version of object, optional
string   $append   —  portion to append to request URL, optional

[ Top ]

getObjects   [line 93]

Services_OpenStreetMap_Objects getObjects( string $type, array $ids)

Get objects of specified type.
  • Access: public

Parameters:

string   $type   —  object type
array   $ids   —  ids of objects to retrieve

[ Top ]

getResponse   [line 112]

HTTP_Request2_Response getResponse( string $url, [string $method = HTTP_Request2::METHOD_GET], [string $user = null], [string $password = null], [string $body = null], [array $post_data = null], [array $headers = null])

Send request to OSM server and return the response.
  • Throws: Services_OpenStreetMap_Exception If something unexpected has happened while conversing with the server.
  • Access: public

Parameters:

string   $url   —  URL
string   $method   —  GET (default)/POST/PUT
string   $user   —  user (optional for read-only actions)
string   $password   —  password (optional for read-only actions)
string   $body   —  body (optional)
array   $post_data   —  (optional)
array   $headers   —  (optional)

[ Top ]

searchObjects   [line 132]

Services_OpenStreetMap_Objects searchObjects( string $type, array $criteria)

Search Objects of specified type for certain criteria.

Parameters:

string   $type   —  object type (e.g. changeset)
array   $criteria   —  array of criterion objects.

[ Top ]


Documentation generated on Tue, 28 May 2019 19:19:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.