tile38 icon indicating copy to clipboard operation
tile38 copied to clipboard

Business Association ID

Open huangpeizhi opened this issue 8 years ago • 8 comments

hi, tidwall, Thanks you for your tile38 system! In many cases, the GPS information is associated with the business, but the unique service identifier ID cannot be passed when using asynchronous processing (HOOK), because TILE38 allows only numeric fields to be passed. Can you consider adding a string identifier that can be passed to establish contact with your business?

huangpeizhi avatar Jul 26 '17 08:07 huangpeizhi

Hi huangpeizhi,

If I understand correctly, you are asking for fields that allow string values? For example:

SET fleet truck1 FIELD id abc123 POINT 33.423 -115.726

tidwall avatar Jul 26 '17 14:07 tidwall

Hi, tidwall, I was just thinking about how to solve the problem same as @huangpeizhi last night. ^_^ At the same time, can you also consider extending the WHERE clause with field equal? Of course, passing MIN/MAX with the same value is also a way to the same purpose.

yorkxiao avatar Jul 26 '17 14:07 yorkxiao

I'm going to allow storing string fields in a future release.

tidwall avatar Aug 03 '17 21:08 tidwall

thanks! :-)

huangpeizhi avatar Aug 05 '17 13:08 huangpeizhi

Hi tidwall,

Thanks for tile38 love the simplicity:-)

Any progress on including fields eg. SET fleet truck1 FIELD id abc123 POINT 33.423 -115.726

adrianbro avatar Feb 12 '18 23:02 adrianbro

Wondering if this is supported. Latest version from the docker seems to be still giving error for string fields.

KrishnaPG avatar Jun 25 '19 13:06 KrishnaPG

I would like to use this feature as well :+1: I hope we will be able to set multiple string values (similar to the meta information of the SETHOOKcommand)

SET fleet truck1 FIELD driver John owner SuperFleetInc POINT 33.423 -115.726

tomhoefer avatar Aug 12 '20 19:08 tomhoefer

Hi,

I am also looking something like this. Please find my usecases below.

127.0.0.1:9851> jset test 1 outstation dharwad
 {"ok":true,"elapsed":"49.379µs"}
127.0.0.1:9851> get test 1
 {"ok":true,"object":{"type":"Point","coordinates":[-84.4767280575,45.6304059969,100],"outstation":"dharwad"},"elapsed":"34.099µs"}
127.0.0.1:9851> nearby test point  45.6304059969 -84.4767280575  6000
{"ok":true,"objects":[{"id":"1","object":{"type":"Point","coordinates":[-84.4767280575,45.6304059969,100],"outstation":"dharwad"}}],"count":1,"cursor":0,"elapsed":"115.183µs"}
127.0.0.1:9851>
127.0.0.1:9851> nearby test where outstation dharwad point  45.6304059969 -84.4767280575  6000
(error) invalid argument 'dharwad'

Usecase 1: I want to find the taxis nearby my place who are waiting for long time and have done few trips. I need to give priority to the Driver who is waiting for long time. My query would look like as below.

nearby test limit 1 timestamp where trips lessthan 10 point 34.123 -12.123 6000

Usecase 2: I want to find the Outstation taxi service, as provided in the above example.

nearby test where outstation dharwad point 45.6304059969 -84.4767280575 6000

kirantpatil avatar Aug 21 '20 15:08 kirantpatil