Skip to content

Commit

Permalink
Merge pull request #143 from Datenschule/berlin-4326
Browse files Browse the repository at this point in the history
[BE] Request EPSG:4326 coordinates
  • Loading branch information
k-nut committed Jul 15, 2024
2 parents 46f7265 + 111d566 commit b3a67f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jedeschule/spiders/berlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class BerlinSpider(scrapy.Spider):
name = "berlin"
start_urls = ['https://gdi.berlin.de/services/wfs/schulen?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&srsname=EPSG:25833&typename=fis:schulen']
start_urls = ['https://gdi.berlin.de/services/wfs/schulen?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&srsname=EPSG:4326&typename=fis:schulen']

def parse(self, response):
tree = ET.fromstring(response.body)
Expand All @@ -23,7 +23,7 @@ def parse(self, response):
continue
if entry.tag == "{schulen}geom":
# This nested entry contains the coordinates that we would like to expand
lat, lon = entry.findtext(
lon, lat = entry.findtext(
"gml:Point/gml:pos", namespaces=namespaces
).split(" ")
data_elem["lat"] = lat
Expand Down

0 comments on commit b3a67f7

Please sign in to comment.