Platformer - ground contact and elevator platforms

I'm trying to simulate a simple platformer using box2D, i'm currently facing 2 problems:

- How do i find out whether a body is touching the "ground" (anything below it), so that i can determine if it is able to jump.

- I've made a elevator platform using a kinematic body and i'm moving it through "SetLinearVelocity", and it works as it should from physics engine standpoint, however, i don't want the inertia pushing the player's body into the air as the elevator platform reachers it's maximum height. Any suggestions on how to do this?


Thanks.


edit: some fixes, sorry for my english

Original thread: https://box2d.org/forum/viewtopic.php?t=6775