Skip to content

Commit

Permalink
Ajuste na pesquisa
Browse files Browse the repository at this point in the history
Corrige erro ao codificar desnecessariamente as coordenadas, o que
gerava erros ao pesquisar por mais de 50 resultados
  • Loading branch information
gavlinski committed Feb 11, 2014
1 parent f2c26dd commit 4e82e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FoursquareAPI.Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private function POST($url,$params=false){
* @return array(lat, lng) || NULL
*/
public function GeoLocate($addr){
$addr = str_replace(" ", "+", urlencode($addr));
$addr = str_replace(" ", "+", $addr);
$geoapi = "http://maps.googleapis.com/maps/api/geocode/json";
$params = array("address"=>$addr,"sensor"=>"false");
$response = $this->GET($geoapi,$params);
Expand Down

0 comments on commit 4e82e7e

Please sign in to comment.