Can someone advise me that can we use MapBox geocoding API to get coordinates of location and store it in the database - maps

My app requires ask user to enter their location and it retrieves the coordinates with MapBox geocoding api. I wanted to know can I store the coordinates in the database so that I can display all user's location on Map.
MapBox Policy.
https://www.mapbox.com/legal/tos
You may not use results from the Geocoding API (a) to develop a general database of locations or addresses for any neighborhood, city, state, country, or other such geographic region, or to develop any other general purpose digital map database; (b) to develop or test another geocoding application or API; (c) in connection with navigation products preinstalled or integrated into automobiles by auto manufacturers, auto electronic component manufacturers or auto system integrators; or (d) for in-flight navigation.

https://www.mapbox.com/legal/tos#[OsOs]:
2.8. you may not cache, store, or export any map content from the Services

Related

Connecting NFTs to physical products by an NFC tag on the Solana blockchain with Dart / Flutter

I'm interested in spinning up a collection of NFTs on Solana where the NFTs are connected to physical products via an NFC tag. What this means is each NFT has a unique url or asset contract, when you scan the NFC tag it directs the scanner to the NFT.
Ideally I'd like to do this how Adidas does it where they "burn" the NFT when you redeem for the physical product but I don't want to get too in over my head if that's too complicated. I don't want to create another NFT after the NFT is burned either.
I've seen several on Ethereum but am more interested in the Solana use case. Does anyone have any experience building these or have seen similar collections on Solana?
I've seen that Metaplex is an accelerator for React for spinning up NFTs but I'm unsure if it could be utilized. Ideally would like to use Dart / Flutter but if React is the only option then I could make it work

Storing API search results in local database

Every time someone hits an API route I want to store that information in database, connected with req. IP.
Afther I would like to find some association rules based on similar searches.
Should I store some information in cookies or to use local dartabase?
Example on some hotels site:
I want to store info that i got a lot of request for cheap hotels in some specific area.
Thnaks.
Definitely in a database. Cookies wouldn't make sense because
You cannot rely on cookies for persistent data. They can expire, be cleared, etc.
Cookies can hold a very limited amount of data (4093 bytes usually)
Cookies are stored locally on your client's browser, you want information across all of your clients.
Tracking user behavior data is very common web feature. You may want to use a web analytics service such as Google Analytics rather then implement your own.

How to use google maps api in angularjs to get list of cities between two markers (cities)

I'm trying to show list of via point major cities when user enters/selects starting and end locations. I'm using angularjs and google maps api. Please let me know if this is possible or not?
What you're asking is most definitely possible, but not trivial. In addition to the google maps API, you will likely need to use another tool provided by google: their Places API.
This API would allow you to input a location and receive information about nearby landmarks, establishments, etc. The places API could be called from an Angular 1 service and then filtered or further manipulated to retrieve only results that are considered "major" to your users.
Depending on how accurate/specific you need your data to be, you should also consider using the American Census data API. You can compare the results from your google places API results and use real, accurate government data to check the population of regions or cities.
So to answer your question: Yes, it is most definitely possible although it certainly doesn't require Angular.

Storing Bing maps data in SQL Server, creating a route from saved location

I want to store locations in the form of longitude & latitude in SQL Server. I'd then want to retrieve and display it on Bing Maps. The goal would be to show route to them from the user's current location.
I think there is a location service which is different from Bing Maps, and maybe it would be provide me with what I need.
How can all of this be done?
Here is a pretty good article that shows how you can visualize routes in a Windows Phone application. As of SQL CE storage, you might want to start here.
You can have a look on WP7 Code Samples:
http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx
Local Database Sample
Location Service Sample
Also try this: http://channel9.msdn.com/Series/Windows-Phone-7-Development-for-Absolute-Beginners/GPS-Location-API-and-Calling-Web-Services

Geocoding out of Salesforce.com (large number of static adresses)

We have developed an application in Salesforce.com to geocode and display account information (address information) on Google Maps within Salesforce.com. We have around 750k addresses for the initial (one-time) geocoding process (static address data), as we store the lat/lon with the account.
Is their any way to get this geocoded done in one 'batch' as we seem to hit the daily allowance of request per day (3k)?
Thanks for your support and feedback.
If you'd like to use Google to do this and you need to precompute the lat/lon coordinates, you'll need to upgrade to the Google Maps API for Business. The table on that link provides a detailed overview of the limit differences, and I suspect that the terms of use may also be more in line with what you're developing too.
If your goal is to create a Google Map from the addresses, you may also consider just passing the address data instead of the latitude and longitude. Their static maps will work fine as long as you know which locations that you'd like to use on the map, you don't have too many locations in one map and you don't need interactivity. Otherwise, you should use the javascript API and their documentation is very good for that.
If you don't know which locations you'd like to use on the map, you could use the lat/lon coordinates of their zip codes (which are freely available) to create a view port.
If you'd like a static map of the locations (whether or not you precompute the lat/lon), I'd recommend taking a look at the apexgooglestaticmap Github repository. It makes it quite easy to make certain types of static Google maps in APEX and VisualForce. Here's an example from that README:
APEX Controller
String[] homes = new String[]{'Albany, NY','Wellesley, MA','New York, NY','Pittsburgh, PA','01945','Ann Arbor, MI','Chicago, IL'};
GoogleStaticMap.MapPath moves = new GoogleStaticMap.MapPath(homes).color('0x000000ff');
String movesUrl = new GoogleStaticMap().addPath(moves).url;
Visualforce Page
<apex:image value="{!movesUrl}">
Google Maps URL and Image
https://maps.google.com/maps/api/staticmap?sensor=false&size=500x350&markers=label:0%7CAlbany%2C+NY&markers=label:1%7CWellesley%2C+MA&markers=label:2%7CNew+York%2C+NY&markers=label:3%7CPittsburgh%2C+PA&markers=label:4%7C01945&markers=label:5%7CAnn+Arbor%2C+MI&markers=label:6%7CChicago%2C+IL&markers=label:0%7CAlbany%2C+NY&markers=label:1%7CWellesley%2C+MA&markers=label:2%7CNew+York%2C+NY&markers=label:3%7CPittsburgh%2C+PA&markers=label:4%7C01945&markers=label:5%7CAnn+Arbor%2C+MI&markers=label:6%7CChicago%2C+IL&path=weight:5%7Ccolor:0x000000ff%7CAlbany%2C+NY%7CWellesley%2C+MA%7CNew+York%2C+NY%7CPittsburgh%2C+PA%7C01945%7CAnn+Arbor%2C+MI%7CChicago%2C+IL&
There are also many other geocoding APIs available. They each have their own terms of service, so make sure that your application matches the acceptable uses before you build anything with them. I've personally used PCMiler Web Services with success, and Geonames for reverse geocoding (they have a number of other great features too).
Google only allows that max per IP Address. If you were able to maximize the locations you were doing them from, max out at work, home or maybe your local starbucks, you could be able to hit the goal easily. If you have more than 250 employees just assign the 'homework' of going home and geocoding it! Spread the wealth, and the fun, of geocoding!
The other solution is using Google Maps API For Business, which allows you to do a max of 100,000 requests per day. For more information look at: http://code.google.com/apis/maps/documentation/geocoding/ ; for more information specifically on Geoogle Maps API For Business: http://code.google.com/apis/maps/documentation/business/index.html
I use this geocoder, and add my list and use yahoo to get the lat and long.
We have FindNearby installed, so once I get all the addresses geo-coded, I add them back into my excel worksheet in the respective column that has the Record ID. Since we use FindNearby, I have to add a column that is titled Mapping Status, and all cells under this say Located. I used ApexData loader to mass upload into SF. Note, geocoder has a limit of only 1000 records at a single "code" click, but it has no limit of how many lists you can process per day.
I changes some code to use Bing map services instead of google. There limits are based on keys and are much larger. Also when the key hits its max requests, then you can just get a new free key and apply it.

Resources