tyrasd / osmtogeojson

convert osm to geojson
http://tyrasd.github.io/osmtogeojson/
MIT License
683 stars 112 forks source link

Add feature for coodinate reprojection #105

Open jdavidls opened 5 years ago

jdavidls commented 5 years ago

I think coordinate reprojection can be usefull if we want to use the resulted geojson data with other services like google places/routes, or other openstreetmap open services.

I think the most simple implementation for that can be throught a callback, like this:

var result = osmtogeojson(osmdata, {
  reprojection: (coords) => {
    // reprojection here
    return otherCoords;
  }
});

Would a pull request be accepted?