Onemap module with Python

Hi,

I was trying out the onemap module using python.

import onemap

OM = onemap.OneMap("access_code")

res = OM.search_address("city hall")
type(res)

But I encounter an error,
Traceback (most recent call last):
File “onemap_wrapper.py”, line 1, in
import onemap
File “C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\onemap_init_.py”, line 305
return all(map(lambda (k,v): (item.get(k) or ‘’).lower() == v.lower(), filters.iteritems()))
^
SyntaxError: invalid syntax

Please advise on how to resolve this error! Thank you!

Hello Marcus,

This python package is created by a user for OneMap 1.0

Please note that it is incompatible with our New API services.