yawik / StackoverflowApi

Yawik module to push and manage jobs to/with the API from talent.stackoverflow.com
MIT License
2 stars 0 forks source link

move coords to lon/lat attributes of location tag #8

Closed cbleek closed 6 years ago

cbleek commented 6 years ago

Currently we're simply convert a location into a String, which results in:

<locations>
<location>
  Taufkirchen, Bayern, Deutschland ( 11.6167, 48.05 )
</location>
</locations>

if city, region, country and coords are given. Stackoverflow offers to add coords as attributes to the location tag. So we should convert a location to:

<locations>
<location lon="11.6167" lat="48.05">
  Taufkirchen, Bayern, Deutschland
</location>
</locations>
cbleek commented 6 years ago

was done in cf6e7a1246043ff93ce965947354830b374cb8bc