The next thing we'll work on is adding real estate properties: houses/homes to rent. In this particular lesson, we will focus on adding the geographical data for city, country, and latitude/longitude.
Goals of This Lesson
- Build a DB schema for countries, cities, and geographical objects, seeding a few of each
- Build a first version of DB schema for properties, with geographical data
- Automatically set property latitude/longitude based on the address, with Observer and Google Maps API
- First version of API endpoint to create a property, covered by PHPUnit test
By the end of this lesson, we will see this in Postman:

Like this very much; however we in the United States use states more than country. I see you used the United States and New York City bot you left out the states of New York. Country_id, State_id, and city_id then the address and zip code is used to mail a letter hear the country is only used if mailing from out side of the United States.
I agree, but I think the main point of this scenario was to copy what he saw on bookings.com In either case you would be able to adapt what he has created to your specific case.
I know, and in other countries there's a different regional structure, too. But if I went that deep with every country, and other Booking.com features with all their possible details, I wouldn't release this course until 2026.
Not sure what to say about the OP lol