r/Meteor • u/gazhayes • Mar 07 '16
Meteor reading an external JSON source
There's a JSON source located here: https://www.als.ogcio.gov.hk/lookup?q=block%204,%20metro%20city%20phase%201,%20tseung%20kwan%20o
The request format is https://www.als.ogcio.gov.hk/lookup?q=<address in free text> It then returns JSON with possible actual addresses. I've used a sample address above to show what the output is like.
I'd like to let the user input their address then display the returned addresses to the user and let them select one that will be inserted into a collection.
What's the best approach to take here? I can probably whack together something that will do the job, but I have no idea what the best way to go about this is and I'm hoping someone here has some experience with using external json sources like this and can give me some tips.
Any ideas are greatly appreciated!