File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,6 @@ def request_geonames(request):
623
623
or str (keyword ).lower ().startswith ("tm" )
624
624
):
625
625
response = requests .get (geonames_url , params = payload ).json ()
626
- print (response )
627
626
assert isinstance (response , dict )
628
627
if RAW_DATA_API_URL :
629
628
if str (keyword ).lower ().startswith ("boundary" ):
@@ -646,7 +645,7 @@ def request_geonames(request):
646
645
}
647
646
add_resp = {
648
647
"bbox" : geojson ,
649
- "adminName2" : feature ["properties" ]["iso_3" ],
648
+ "adminName2" : f'ISO3 : { feature ["properties" ]["iso_3" ]} ' ,
650
649
"name" : f'{ request .GET .get ("q" )} -> { feature ["properties" ]["description" ]} ' ,
651
650
"countryName" : feature ["properties" ][
652
651
"dataset_name"
@@ -656,6 +655,7 @@ def request_geonames(request):
656
655
657
656
if "geonames" in response :
658
657
response ["geonames" ].append (add_resp )
658
+ response ["totalResultsCount" ] += 1
659
659
660
660
if str (keyword ).lower ().startswith ("osm" ):
661
661
lst = keyword .split (" " )
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export class ExportAOI extends Component {
137
137
138
138
handleSearch = result => {
139
139
var geojson ;
140
- if ( result . adminName2 . startsWith ( 'HOTOSM ' ) ) {
140
+ if ( result . adminName2 . startsWith ( 'ISO3 ' ) ) {
141
141
try {
142
142
geojson = JSON . parse ( JSON . stringify ( result . bbox ) ) ;
143
143
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments