title: How to compare two routes using google direction apis or some other apis for iPhone app
body: <p>I want to compare two routes to check if they are same or not in my iPhone app. </p>
  
  <p>There is a person X who wants to go to point A to point B and another person wants to go to point A1 to point B1. </p>
  
  <p>I can  get a route between A to B using this direction APIs of google. </p>
  
  <p><code>http://maps.googleapis.com/maps/api/directions/xml?origin=Point a A address&amp;destination=Point B address&amp;sensor=false</code></p>
  
  <p>same way I can get route of A1 to B1. </p>
  
  <p>but the latitude and longitude I am getting in xmls are not matching (even a single point is not matching). So here is my question how can I match two routes I want to know is this same route or not.</p>
  
  <p><img src="https://i.stack.imgur.com/8rsHi.png" alt="enter image description here"></p>