Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Map API, need suggestions for how to execute ideas
-
@cvp all good. Just wanted to make sure you knew for later
What you wrote below sounds good.
-
@RocketBlaster05 said:
so I can record their locations
I could, for instance, store their locations in the cross-hair subtitle, thus you would see them when tapping the cross-hair, but ok, that's for the future.
-
@RocketBlaster05 for info, I'll use Haversine formula to compute the distance between two points of the earth.
-
@cvp 👍 sounds good
-
@RocketBlaster05 do you want this as cross-hair, or only the "plus" without the foot?
-
@RocketBlaster05 I want to take advantage of this big modification to change entirely the file layout to be able to save their:
- green
- trash
- cross-hair
But that would say that you would loose all of your actual data.
Ok with that?
-
@cvp as in the locations already saved in the a.loc file? If so then yes. I can always just plot more points
P.S. could you find a cross with a circle around it -
@cvp The crosshair should stay by itself. I think it might be misleading if it was on a pin
-
@RocketBlaster05 which time is it for you and until when are you free for questions?
-
@cvp sorry was busy. It’s 11:11 am for me and I can talk really for another 11 hours
-
@RocketBlaster05 something like, or do you prefer black
-
@cvp that looks great
-
@RocketBlaster05 do you prefer that the file stays named a.loc or something .txt so you can edit it more easily in Pythonista. Please, let me know which name you want.
-
@cvp a.loc is still editable in Pythonista but it would probably be easier to have it set to like locations.txt
Thanks -
@RocketBlaster05 you will see in the script that, at begin, there are 3 parameters
radius = 6371000 # earth radius in meters close_distance = 10 # maximum 10 meters between 2 close pin's close_number = 3 # minimum pin's number to set as a close area
The checking of a close area needs to have at least 3 pin's with a maximum distance of 10 meters to the first one. That will say that
p2 <-- 10m --> p1 <-- 10m --> p3 is a close area even if p2 and p3 are distant or 20m
If you want another criteria tell me.
I could check if all points of a group are less distant of 10m, pair by pair.
More complex process but you can already test the script about graphic, file etc...As soon I receive the name of the file like you prefer, I'll post the file in GitHub
-
@RocketBlaster05 Github done
Please, test it and tell me what.
-
@cvp did some testing.
When green pins are converted into trash, they all combine seamlessly.
However, if I create a trash pin using the user location with the man emoji, it gives me an error on line 91... doesn’t properly delete the pins for some reason.
-
@RocketBlaster05 said:
However, if I create a trash pin using the user location with the man emoji, it gives me an error on line 91... doesn’t properly delete the pins for some reason.
I'll check. Be sure I did not test all... sorry but it is always so.
I'll also modify so a group has all their pin's at maximum distance each of other
-
-
@RocketBlaster05
@cvp said:I'll also modify so a group has all their pin's at maximum distance each of other
Done but not easy to test