- place.set('place_id', result.names['ref'])
- place.set('lat', str(result.centroid.lat))
- place.set('lon', str(result.centroid.lon))
+ place.set('ref', result.names['ref'])
+ elif result.locale_name:
+ # bug reproduced from PHP
+ place.set('ref', result.locale_name)
+ place.set('lat', f"{result.centroid.lat:.7f}")
+ place.set('lon', f"{result.centroid.lon:.7f}")