I added this for a proprietary mapping app. Yeah, it's not a correct implementation, but it allowed the app to not crash and actually to run pretty decently.
I can probably find some time to look into a proper implementation, but it was certainly enough for me.