Business Association ID
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?
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
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.
I'm going to allow storing string fields in a future release.
thanks! :-)
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
Wondering if this is supported. Latest version from the docker seems to be still giving error for string fields.
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
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