title: Clustering latitude longitude points in Python with fixed number of clusters
body: <p>kmeans does not work properly for geospatial coordinates - even when changing the distance function to haversine as stated <a href="https://datascience.stackexchange.com/a/848/10436">here</a>.</p>
  
  <p>I had a look at <a href="http://scikit-learn.org/stable/auto_examples/cluster/plot_dbscan.html" rel="nofollow noreferrer">DBSCAN</a> which doesn
  t let me set a fixed number of clusters.</p>
  
  <ol>
  <li>Is there any algorithm (in python if possible) that has the same input values as kmeans? or</li>
  <li>Can I easily convert latitude, longitude to euclidean coordinates (x,y,z) as done <a href="https://stackoverflow.com/a/1185413/1252307">here</a> and do the calculation on my data?</li>
  </ol>
  
  <p>It does not have to perfectly accurate, but it would nice if it would.</p>