Permalink
Browse files

- Removed FactualQuery::near()

- Edited comments
  • Loading branch information...
1 parent 4fbe3a3 commit bec5c287295ec17f64007554cab898f499412399 @twbell twbell committed Jan 31, 2012
Showing with 2 additions and 23 deletions.
  1. +1 −2 CrosswalkQuery.php
  2. +0 −19 FactualQuery.php
  3. +1 −2 ResolveQuery.php
View
@@ -8,7 +8,7 @@
* @package Factual
* @license Apache 2.0
*/
-class CrosswalkQuery {
+class CrosswalkQuery extends FactualQuery {
private $factualId; //string
private $limit; //int
private $_namespace; //string
@@ -17,7 +17,6 @@ class CrosswalkQuery {
/**
* Whether this lib must perform URL encoding.
- * Some oauth libs urlencode the params for you (one included here does), others do not
* Set to avoid double or absent encoding
*/
const URLENCODE = true;
View
@@ -21,7 +21,6 @@ class FactualQuery {
/**
* Whether this lib must perform URL encoding.
- * Some oauth libs urlencode the params for you (one included here does), others do not
* Set to avoid double or absent encoding
*/
const URLENCODE = true;
@@ -148,24 +147,6 @@ public function field($field) {
}
/**
- * Begins construction of a new row filter for this Query.
- * @param string field The name of the field on which to filter.
- * @return obj QueryBuilder A partial representation of the new row filter.
- * @todo: implement
- */
- public function near(string $text, int $meters) {
- throw new FactualApiException("Method " . __METHOD__ . " not yet implemented in PHP Wrapper");
- /*
- Coord coord = new DataScienceToolkit().streetToCoord(text);
- if(coord != null) {
- return within(new Circle(coord, meters));
- } else {
- throw new FactualApiException("Could not locate place based on text: '" + text + "'");
- }
- */
- }
-
- /**
* Adds a filter so that results can only be (roughly) within the specified
* geographic circle.
*
View
@@ -4,11 +4,10 @@
* This is a refactoring of the Factual Driver by Aaron: https://github.com/Factual/factual-java-driver
* @author Tyler
*/
-class ResolveQuery {
+class ResolveQuery extends FactualQuery {
private $values = array();
/**
* Whether this lib must perform URL encoding.
- * Some oauth libs urlencode the params for you (one included here does), others do not
* Set to avoid double or absent encoding
*/
const URLENCODE = true;

0 comments on commit bec5c28

Please sign in to comment.