geo = geo_url.parseString('geo:27.9878,86.9250,8850;crs=wgs84;u=100')
print(geo.dump())
['geo:', [27.9878, 86.925, 8850.0], ';', [['crs', 'wgs84'], ['u', 100.0]]]
- args: [['crs', 'wgs84'], ['u', 100.0]]
- crs: wgs84
- u: 100.0
- coords: [27.9878, 86.925, 8850.0]
- alt: 8850.0
- lat: 27.9878
- lng: 86.925
print(geo.coords.alt)
8850.0
print(geo.args.asDict())
{'crs': 'wgs84', 'u': 100.0}
Best practice:
dump() is very useful for seeing the
structure and names in the parsed
results
Best practice:
pprint() is useful for seeing the results
structure if no results names are
defined