I am working on a taxi booking app where routes between cities are predefined in the database with pickup and drop city.
Without google place API things are working fine.
Now I want to make a dropdown in flutter where it can search any city in the country and if those pickup and drop cities are found in the database then display the route from DB otherwise it will just log an entry in the booking inquiry.
How to map a city data from google to a custom city table where I have cities' names?
This is more of a choice where developers will use their ideas and implement this in their own way. This is though not a right platform to ask this kind of question. Yet I'll try to help in my own way.
In my opinion you don't need to map anything for this case. You can simply check for user input on dropdown and check with your stored cities. If no matches found, you keep the entry for inquiry and if a match is found, you can use Google's Direction api to find route and draw on map.
Related
I am using Google AppsSheet as a front end to a small business Application I built for a friend using Google Sheets as the user interface, dashboard and database. The Sheet has a dashboard and mockup invoicing system that can display a signature image at the bottom of the invoice that was captured using AppSheet. The filename of the signature is stored in a column as well as all of the other invoice data. On the invoice page, I have a dropdown list of customers and after selecting the customer I click a button that runs a script to populate the invoice with all of the customer data. For the Signature, I am using the Google Sheets formula " =IMAGE("https://drive.google.com/open?id=" & CELL W/IMAGE ID) " to display the captured image on the Google drive. This part works fine BUT only if I use the ID of the image, not the Filename of the image. If have to manually add the image ID, this defeats the automation aspect and I can not expect my buddy to figure that out for every image...
Finally the Question:
Since I have the file name of the image, I would like to get the ID of the image to save in a new column for the recall of the signature Image at the bottom of the invoice page. Then he can export the invoice as a PDF and send to the customer.
Is this possible or is there another way to accomplish displaying an image in Google Sheets using the Filename of an image stored in a Google Drive folder?
I'm a noob and have accomplished a lot using stackOverflow as my main coding reference. I applaud all who contribute to helping us noobs out. Thanks in advance!
I have searched all over google and tried using .getId(), getFilesByName() then trying to get the ID.... As I mentioned before... I am a noob and still wrapping my head around how Objects and Methods work together and trying to visualize the relationships between all of the moving parts. Any good resources for explaining all of this would be helpful as well... Thanks.
I've been told that you should really only use a database if your data will be updated in some way by the end user. But what if your website is "static" in the sense that the user doesn't update anything?
For example maybe your website displays a map of the USA and you can click on each state, click on a few cities in each state and view data for those areas(population, demographics, climate history, whatever). Is a database in this situation appropriate? The user isn't updating anything but you can end up with some very large datasets depending on what information you want to display. Would a database be appropriate for something like this?
The Azure base base map that displays with my map looks great but I don't see any of the streams or water basins labelled on the map. Are there Azure map layers available to display this information?
Thanks,
Annette
I suspect the data you are looking for isn't in the base map data. I recommend reporting this feedback on this site: https://feedback.azuremaps.com/ Click on the map where the streams/water basis are missing and press "Add comment". This will create a ticket with our data provider and an investigation will occur on their side to get this resolved in the future. When you send feedback it also creates a URL you can use to go back and check the status of your feedback.
We have a property/accommodation profile page that lists a property address including postcode. This information is stored in a SQL Server database table and the page has a recordset that allows us to feed profile information onto a page depending on the propertyID that is selected (either via link or using a form) by the user.
We created a field in the database table that would allow us to insert the Google Map embed code for a property and, subsequently, we'd then call that on the property profile page but this requires us to create the embed code in Google Maps first, have to paste that into our database field etc, before it would display a map on our page.
So...we would like to database drive the map based on the postcode. Is that possible?
We really don't want to have to get into longitude/latitude coordinates, we just want the map to identify the postcode and put a place marker on a map where that postcode appears.
How do we acheive this? We've tried looking through the documentation and help files, but we really don't know what we're asking for so finding answers is proving incredibly difficult or the answers that we've found seem extremely technical (Google API, Geocoding, etc) for what we're trying to acheive.
Could someone point us in the right direction?
We hoped that there would be some way of inserting the postcode, dynamically, into generic embed code from Google Maps and that Google Maps would do the rest.
Anyway, we would appreciate any help and advice that could be offered. Thank you.
Regards
NJ
Traditionally Postcode data in the UK costs lots of money.
You can now download the Ordnance Survey data and convert their data into Latitude and longitude which would let you plot coordinates on google maps. (http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/index.html)
Like youtube, i have a usertable, a table with objects (videos) and a table with categories.
Now, I want a user to be able to subscribe to a category, but how do I do this effectivly? I would need a table for keeping track of which categories a user subscibes to (many-to-many relationship), but I also need to keep track of which objects (videos) that a user hasn't watched yet, so how do I do that?
Just have another table that tracks which videos a user HAS watched. Then when selecting which videos to show to the user check them against the watched video table to make sure they haven't seen it yet.
You can then also use this table to show the user a list of all videos they have watched, or display a complete list of which videos are currently being watched on the site etc.
Why not use RSS? That way, a user can manage their own subscriptions and you don't have to store all the subscription info and then run a process based on these subscriptions. Their RSS reader will take care of that for you.
This CodeProject article has some details about how to serialize your classes into RSS.