|
103 | 103 | <?php
|
104 | 104 |
|
105 | 105 | /**
|
106 |
| - * Regionen ermitteln. |
| 106 | + * Geodaten (Suggestion) ermitteln. |
| 107 | + */ |
| 108 | +echo '<h2>GIS - GeoAutoCompletion (GAC) v2 API Suggestion Ressource</h2><br> |
| 109 | + API Dokumentation: https://api.immobilienscout24.de/our-apis/gis/geoautocompletion-v2.html#suggestion'; |
| 110 | +$aParameter = array('country'=>'DEU', // DEU or AUT |
| 111 | + 'i'=>'Berlin', // input search query |
| 112 | + 'l'=>'10', // optional, limit max. 50 |
| 113 | + 't'=>'ALL'); // optional, entity types |
| 114 | +$res = $oImmocaster->getGeoAutocompletionSuggestion($aParameter); |
| 115 | +echo '<div class="codebox"><textarea>'.$res.'</textarea></div>'; |
| 116 | + |
| 117 | +/** |
| 118 | + * Geodaten (Entity) ermitteln. |
107 | 119 | */
|
108 |
| -echo '<h2>Regionen ermitteln</h2>'; |
109 |
| -$aParameter = array('q'=>'Ber'); |
110 |
| -$res = $oImmocaster->getRegions($aParameter); |
| 120 | +echo '<h2>GIS - GeoAutocCmpletion (GAC) v2 API Entity Ressource</h2><br> |
| 121 | + API Dokumentation: https://api.immobilienscout24.de/our-apis/gis/geoautocompletion-v2.html#entity'; |
| 122 | +$aParameter = array('country'=>'DEU', // DEU or AUT |
| 123 | + 'id'=>'1276003001', // The ID of the entity. You get IDs in the result of the suggestion resource. |
| 124 | + 'g'=>'WGS84'); // optional, GeoCodingType: One of None, GeoId, Lambert, WGS84 (optional) |
| 125 | +$res = $oImmocaster->getGeoAutocompletionEntity($aParameter); |
111 | 126 | echo '<div class="codebox"><textarea>'.$res.'</textarea></div>';
|
112 | 127 |
|
113 | 128 | /**
|
114 |
| - * Geodaten ermitteln. |
| 129 | + * Geodaten (Geohierarchy) ermitteln. |
115 | 130 | */
|
116 |
| -echo '<h2>GIS - Geo Service</h2>'; |
| 131 | +echo '<h2>GIS - Geohierarchy</h2><br> |
| 132 | + API Dokumentation: https://api.immobilienscout24.de/our-apis/gis/geohierarchy.html'; |
117 | 133 | $aParameter = array('country-id'=>276,'region-id'=>2,'list'=>true);
|
118 | 134 | $res = $oImmocaster->geoService($aParameter);
|
119 | 135 | echo '<div class="codebox"><textarea>'.$res.'</textarea></div>';
|
|
0 commit comments