How to autocreate waypoint in maps?