Onemap Autofill Address on Form

Do Onemap have any library to autofill address form? Like same what google map have here: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

If you take a look at the search results object, you can see that the information you need is in results.

{  
   "found":5,
   "totalNumPages":1,
   "pageNum":1,
   "results":[  
      {  
         "SEARCHVAL":"INLAND REVENUE AUTHORITY OF SINGAPORE (IRAS)",
         "BLK_NO":"55",
         "ROAD_NAME":"NEWTON ROAD",
         "BUILDING":"INLAND REVENUE AUTHORITY OF SINGAPORE (IRAS)",
         "ADDRESS":"55 NEWTON ROAD, SINGAPORE 307987",
         "POSTAL":"307987",
         "X":"28983.7537272647",
         "Y":"33554.4361084122",
         "LATITUDE":"1.31972890510723",
         "LONGITUDE":"103.842158118267",
         "LONGTITUDE":"103.842158118267"
      },
      {  
         "SEARCHVAL":"REVENUE HOUSE",
         "BLK_NO":"55",
         "ROAD_NAME":"NEWTON ROAD",
         "BUILDING":"REVENUE HOUSE",
         "ADDRESS":"55 NEWTON ROAD, SINGAPORE 307987",
         "POSTAL":"307987",
         "X":"28977.8507137401",
         "Y":"33547.5712691676",
         "LATITUDE":"1.31966682211667",
         "LONGITUDE":"103.842105076401",
         "LONGTITUDE":"103.842105076401"
      }
   ]
}

You will need to parse the results into a dropdown list, and implement the logic to fill in the form based on the user selection.

While this the implementation is trivial, do note that depending on how frequent the search is performed (e.g. on input change event), you could be flooding your server, and OneMaps with a lot of small calls, which may be blocked.

From the docs:

Please note that we have set a maximum of 250 calls per min .

what are you trying to di in part??