Changeset 915dc18 for src/webservice
- Timestamp:
- Sep 17, 2015, 9:11:21 PM (11 years ago)
- Branches:
- master
- Children:
- a2330fc
- Parents:
- e498070
- Location:
- src/webservice
- Files:
-
- 3 edited
-
config/config.php.in (modified) (1 diff)
-
htdocs/SiWeather/Webservice/Location.php (modified) (1 diff)
-
htdocs/SiWeather/Webservice/WebserviceApi.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/webservice/config/config.php.in
re498070 r915dc18 21 21 $config = [ 22 22 "mode" => "@WEBSERVICE_MODE@", 23 "webserviceBaseUrl" => " http://@WEBSERVICE_SERVER_HOST@:@WEBSERVICE_SERVER_PORT@@WEBSERVICE_BASE_URL@",23 "webserviceBaseUrl" => "@WEBSERVICE_BASE_URL_COMPLETE@", 24 24 "spatialiteExtension" => "mod_spatialite.so", 25 25 "geonamesUsername" => "@WEBSERVICE_GEONAMES_USERNAME@", -
src/webservice/htdocs/SiWeather/Webservice/Location.php
re498070 r915dc18 50 50 $this->setRegion($regionName, $regionCode); 51 51 $this->setCountry($countryName, $countryCode); 52 $this->setLocation($l ongitude, $latitude);52 $this->setLocation($latitude, $longitude); 53 53 $this->setTimezone($timeZone); 54 54 } -
src/webservice/htdocs/SiWeather/Webservice/WebserviceApi.php
re498070 r915dc18 203 203 } 204 204 if(!$validatedLocation){ 205 $message = "The city (". $json[ city] .") and location (". $json["latitude"] .", ". $json["longitude"] .") you send, does not suite with locations we found at your given location (city, latitude, longitude):\n";205 $message = "The city (". $json["city"] .") and location (". $json["latitude"] .", ". $json["longitude"] .") you send, does not suite with locations we found at your given location (city, latitude, longitude):\n"; 206 206 foreach($locations as $location){ 207 207 $message .= " ". $location->city() .": ". $location->latitude() .", ". $location->longitude() ."\n";
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)