I am looking to geofence a specific area using Firebase to do things like send alerts to users within a specific area, or perhaps even when they enter an area. I see geosearching capabilities native to Firebase like this, but I'm not sure that it gives me a true "geofence" solution. Furthermore, it seems like it only allows me to define areas in the shape of a rectangle, I need to geofence using custom polygons.
Any advice on how to best utilize Firebase or other systems for this?
Related
I want to use http://{s}.google.com/vt?lyrs=m&x={x}&y={y}&z={z}', {subdomains:['mt0','mt1','mt2','mt3']} - google maps tile template. This is possible? I can't find how to do it in here maps, but I know that it is possible in different map libraries. And, if it is possible, I can use this with vector.normal.truck layers, to see what route is allowed for some trucks?
I want my generated Firebase dynamic links be usable just for one time.
After the first person used the link, we need to prevent the second use of that specific dynamic link.
Is there such a feature build in Firebase dynamic link ? or I should implement it manually inside my app
No, Dynamics Links are designed to be useful to anyone who has the link. There is no way to limit their usage. That would be something you'd have to implement yourself with your own backend.
I have a situation where I need to display content with different terms on a Leaflet map. These terms also are associated with images. At this point, I would like to ask you whether the below can be done.
1) Multiple layers: To show different images, I might need to have multiple layers. Is this possible?
2) Dynamic icons: Is this possible, either with token or something else?
Regards,
mto
As far as I know, multiple layers with Leaflet isn't possible at the moment.
However, if you're wanting to differentiate between items of the same type but with different taxonomy tags, the module "IP Geolocation Views and Maps" (https://www.drupal.org/project/ip_geoloc) will allow you to do this. They've got excellent instructions and I can vouch for it working.
It can get confused if an item is tagged with 2 of the things you're wanting to differentiate between...
We are creating a website for motorbike tours and would like our visitors to be able to enter a start and end location and have this update an embedded Google map on our own website, basically highlighting the best route. We'd like it to work exactly as the "Directions" feature on Google Maps works.
Is this possible? If so, how best to acheive this?
Also, we'd like to restrict the businesses and places of interest that appear on the map as some of them simply won't be relevant to our motorcycle audience. Is it possible to filter out businesses and places of interest and only display what we would like to display?
Really appreciate any advice that could be offered. Thank you.
Regards
Nath.
Yes you can there is already a post with a HTML example. There are limitations on how many requests can be performed in 1 day for free usage. Check the licensing information on the google site.
google maps plot route between two points
Surely you can.
Take a look here and here (the first is for javascript functionality, the second for server-side functionality through web services).
With these API you can show map, show pinned point on that and, using the direction API, you can also calculate the best route among other things.
About the businesses and places you want to show, you can use the places API. though I never used this one, so I can only suggest to have a look at the documetation.
I've imported a city feed for construction on a Google Map API v3. Unfortunately, the default color is a blue that doesn't convey the "caution" needed for construction. Is there an easy way to change the colour of the GeoRSS overlay? Thanks!
No, there isn't an easy way to change the color/styling of a GeoRSS overlay you are pulling in from another service. KML/GeoRSS features are rendered on the map to look like Polylines, Polgyons, and Markers, but they're not full-fledged objects in that sense. If you look at the KmlLayer documentation you'll see that your options are really limited to showing it on a map and making it clickable.
What you need to do is process the GeoRSS / KML somewhere else and add styling information to it that colors the line appropriately. I would probably implement this in a server-side language of your choice, but you could also try to use JavaScript to parse the GeoRSS and create first-class Polyline objects yourself which you'd have full control over.