# let's explore the current coordinate systems:
print(eq_sdf.spatial.bbox)
print(states_sdf.spatial.bbox)
# It is typically better to reproject the feature layer, because this is done server-side.
# We are doing that via a FeatureSet - because a spatial reference system is defined for featuresets
states_fs = states_fl.query(out_sr=4326) # reprojects the featureset, using layer.query()
states_sdf4326 = states_fs.sdf # creates a SEDF from featureset, using featureset.sdf
# Let's see what we got - navigate to the SHAPE column and compare:
states_sdf4326.head()
# Now, we can try spatial join again:
sdf_joined = eq_sdf.spatial.join(states_sdf4326)
sdf_joined.head()
# notice that we have columns from both tables in the sdf_joined.
See the JavaScript guide and examples in ArcGIS Python API
Geocoding is the process of transforming various place name descriptions into a location on the earth's surface.