Nathanotal commited on
Commit
9bd34ef
1 Parent(s): 86526e6

fixed api call

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -150,10 +150,10 @@ class AddressNotFound(Exception):
150
 
151
  def getCoordinatesFromAddress(streetName, number):
152
 
153
- HOST_ADDRESS = '165.227.162.37'
154
- HOST_PORT = '8080'
155
  EMAIL = '[email protected]'
156
- DOMAIN = HOST_ADDRESS + ':' + HOST_PORT
157
  LOCATOR = Nominatim(user_agent=EMAIL, domain=DOMAIN, scheme='http', timeout=10)
158
 
159
  number = str(int(float(number)))
 
150
 
151
  def getCoordinatesFromAddress(streetName, number):
152
 
153
+ HOST_ADDRESS = 'nominatim.openstreetmap.org'
154
+ # HOST_PORT = '8080'
155
  EMAIL = '[email protected]'
156
+ DOMAIN = HOST_ADDRESS # + ':' + HOST_PORT
157
  LOCATOR = Nominatim(user_agent=EMAIL, domain=DOMAIN, scheme='http', timeout=10)
158
 
159
  number = str(int(float(number)))