I am using Python script for accessing this API for getting madrid traffic data. But I am really confused on how to get the geographic coordinates from this data. It has 2 fields st_x and st_y which I feel contain the information for the coordinates. I want to get those coordinates in lat long.

Data for one location

  • 3
    Welcome! What software do you have access to? The coordinate reference system is probably EPSG:25830 or less likely, EPSG:23030.
    – mkennedy
    Commented Aug 31, 2019 at 15:35
  • Ohh, but there are 2 coordinates for st_x and st_y so total 4 coordinates in total how does that makes sense. Commented Aug 31, 2019 at 18:41
  • 2
    The commas are the decimal delimiter.
    – mkennedy
    Commented Aug 31, 2019 at 18:44
  • Ohh, thank you so much @mkennedy !!! Commented Aug 31, 2019 at 18:48
  • 3
    Please always provide data as formatted text rather than pictures so that can be easily copied for testing. Also, any coding question should include a code snippet that illustrates what you have tried and where you are stuck.
    – PolyGeo
    Commented Aug 31, 2019 at 19:30

1 Answer 1


Could be useful to calculate the coordinates: https://github.com/bewest/proj4js or https://www.npmjs.com/package/utm-latlng

  • I used pyproj for conversion Commented Sep 4, 2019 at 13:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.