I will be using MySQL with spatial index for a database, then i will query for 5 nearest neighbors from a given point(lat/long), these points will be interest points in Dominican Republic. Once that i get the 5 nearest points i will need the Name of the Location, Type of the Location, Address of the location and (lat,long) for each point.
What should be the right way to design my database? i was thinking of doing the following: Table: Name Columns: ID, Name
Table: Type Columns: ID, Type
Table: Street Columns: ID, Street
Table: Street Number Columns: ID, Street Number
Table: Borough Columns: ID, Borough
Table: City Columns: ID, City
Table: Geopoint Columns: Latitude, Longitude, GeometryPoint
Am i missing anything? Any Suggestion. Does anyone knows some place where i can read about it? This is a school project, should be using this along with mobile app to show the users 5 nearest point of interest(gas station, restaurants, Pharmacy, etc) depending of their type of choice to their actual location.
Also where i can fetch the data? I mean is there a way where i can get all the streets name, boroughs, city of my country and put it in my database. The points of interest i can create myself i think.