OpenCageData/opencagedata-misc-docs

Different Spatial References as Parameter

DenisCarriere opened this issue · 8 comments

Would it be possible to add different Spatial References outputs to your Geocoder (EPSG: 4326 WGS84 & 3857 Spherical Mercator)

I'm asking for this because someone might be using a mapping platform that would require coordinates in Meters instead of Degrees, by doing this you would reproject the data using some kind of GDAL[http://gdal.org] transformation on the server side so that when it hits the client he would have the correct projection without doing much extra work.

Offering a few standard projects that are available with the GDAL library would be enough to handle that apetite.

By default the spatial reference should be WGS84 (epsg:4326), but it's always nice to have that flexiblity to change it.

URL Request example
http://api.opencagedata.com/geocode/v1/json?q=PLACENAME&key=YOURKEY&epsg=4326

We'll probably do this as an annotation, similarly to how we do the OSGB annotation for Ordnance Survey gridrefs
http://geocoder.opencagedata.com/api.html#annotations

That's a good idea
On Jan 11, 2015 2:39 PM, "Ed Freyfogle" notifications@github.com wrote:

We'll probably do this as an annotation, similarly to how we do the OSGB
annotation for Ordnance Survey gridrefs
http://geocoder.opencagedata.com/api.html#annotations


Reply to this email directly or view it on GitHub
#3 (comment)
.

This just went live, there is now an annotation called "Mercator", will blog about it this afternoon. Enjoy, all feedback welcome. and please keep the ideas coming

Awesome work Ed, I'll be looking forward in seeing it

The link does not seem to work, I don't know if it's just my internet connection or if the link is broken.

Ok, might be just my work computer, I'll try out the link when I'm at home.

Cheers,