Onemap module with Python


I was trying out the onemap module using python.

import onemap

OM = onemap.OneMap("access_code")

res = OM.search_address("city hall")

But I encounter an error,
Traceback (most recent call last):
File “”, line 1, in
import onemap
File “C:\Users\user\AppData\Local\Programs\Python\Python36-32\lib\site-packages\”, 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.