Address 000000 on Google API returns a result

Hi, in Step 6 of Lesson 2, there’s a challenge/test that passes 000000 as the address in the app and expects Unable to find that location. as an output but, if you go visit the URL yourself, i.e.
https://maps.googleapis.com/maps/api/geocode/json?address=000000&key=YOUR_API_KEY
You’ll find a valid result.
formatted_address: "000000, Wichita, KS 67211, USA"

For now, I’ll have to hardcode my program to pass this particular test.
So, update the tests for something like 000001 or 98021331 these are perfectly invalid for the Geolocation API.

Thanks for letting us know about this! We just updated the course to use 000001 for the invalid address.

1 Like