For best odds of a useful answer, please explain in a broader sense what you’re trying to do. Specifically, what app, programming language, etc. are you using? We can only guess.
Until you do, we have no idea of what you’re trying to do other than that it’s something to do with OpenStreetMap data. Currently we don’t know if you’re trying to process openstreetmap data for use on a web site, a phone application, a billboard or trying to engrave it in your lawn with weedkiller.