nvnamsss / streetlity-api

api server
0 stars 0 forks source link

Get Service by mutilple ways instead of only id #35

Open nvnamsss opened 4 years ago

nvnamsss commented 4 years ago

In some cases, we only know the information about service like address, location,... thus we need to implement the method to query by their value instead of only id

nvnamsss commented 4 years ago

this feature is implemented

The only note when this feature is completed is GetServiceByLocation need to approximately compare due to Float in mysql always have the error. You can see that the value is 107.4 but it is actually 107.4000000023 and of course, it lead to false in comparision