I'm trying to use FromGeohash method in Arcpy but it is failing. Here's my code:
import arcpy
spatial_reference = arcpy.SpatialReference(4326)
print spatial_reference
extent = arcpy.FromGeohash('9q8yyx')
It's giving me the error:
Traceback (most recent call last):
File "C:/Python27/ArcGIS10.7/Scripts/Geohash_Converter.py", line 4, in <module>
extent = arcpy.FromGeohash('9q8yyx')
AttributeError: 'module' object has no attribute 'FromGeohash'
Can anyone tell me what's causing this? Arcpy seems to have been imported correctly.