You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tries to parse `address` returning a single point, if the address is
22
+
ambigous `match_index` will be used to pick out the correct address. if
23
+
`match_index` is -1 or not 0 <= `match_index` < len(possible_addresses) the
24
+
disambiguate list is populated with possible addresses and a
25
+
`SearchAddressDisambiguateError` is raised.
26
+
'''
27
+
address_lookup=GoogleAddressLookup( address )
28
+
29
+
ifnotaddress_lookup.resolve():
30
+
raiseSearchAddressException("Sorry, we couldn\'t retreive the coordinates of that location, please use the Back button on your browser and try something more specific or include the city name at the end of your search.")
31
+
32
+
ifnotaddress_lookup.exists():
33
+
raiseSearchAddressException("Sorry, we couldn\'t find the address you entered. Please try again with another intersection, address or postal code, or add the name of the city to the end of the search.")
returnindex(request, _("Sorry, we couldn\'t retreive the coordinates of that location, please use the Back button on your browser and try something more specific or include the city name at the end of your search."))
43
-
44
-
ifnotaddress_lookup.exists():
45
-
returnindex( request, _("Sorry, we couldn\'t find the address you entered. Please try again with another intersection, address or postal code, or add the name of the city to the end of the search."))
0 commit comments