Learning Trajectory Information with Neural Networks and the Markov Model to Develop Intelligent Location-Based Services