Google Map from database - asp-classic

I am looking for some example to use google map for using in ASP MS Access. I need it for address listing , so map will get data from database.
Building no,
Street no.,
City,
Code,
Country

You can store address in your database as actual address string. Like
1600 Amphitheatre Parkway, Mountain View, CA
And when generating Google Map for it on a webpage - use Geocoding. Also you can store latitude and longtitude (maybe also as strings) for some addresses that will not be found (or found incorrectly / not precisely) through Geocoding.
PS. I am not an ASP dev. I work with mere PHP+MySQL, but thats how I used to store addresses for Google Maps on one tourist website project.

Related

Is it possible to include businesses in the HERE Geocoder Autocomplete Search?

Use Case:
I've got a search box where the intention is to search for addresses, cities and businesses, and up to 5 matching locations will be returned. Then, I'll use the geocoder to get lat/lon coordinates for a selected location based upon locationId.
Desired Outcome: The geocoder autocomplete API works well for cities/states/addresses/etc., but I'd like for the results to include businesses as well (where a business result would come with a locationId). Is this going to be possible with the Here API? Using the Places segment of the API would be an option as well if there's a path forward along that route.
NO, Geocoder API helps to find only addresses based on housenumber, street, country ,county, pincode but it does not tell you if the address is of a business category.
You can try Places API and check if it works for your usecase. Read more at developer.here.com/documentation/places/topics/quick-start-find-text-string.html.
Below is an example of Hotel category(Business) in Sunny Vale, CA. You can get the id and location details here.
https://places.cit.api.here.com/places/v1/discover/explore?at=37.370831%2C-122.024636&cat=500-5000-0000&cs=pds&Accept-Language=en-US%2Cen%3Bq%3D0.5&app_id=xxxx&app_code=xxxx

Display Google Map based on ASP.NET/SQL database fields Address, City, Country, Postcode?

We have a backend SQL database on our ASP.NET website that holds each customer's:
Business Name,
Street Address,
City/Town,
Country,
Postcode/ZIP
We want to create a contact.aspx?customerid=123456 webpage which displays these details (depending on customer profile chosen) and then a medium sized map for their address underneath the contact details.
We can get ASP.NET to write some HTML code for the page depending on the customer.
What exactly should we get ASP.NET to write for the HTML? Do we need to ask the customer to get the latitude and longitude co-ordinates first and load them into their database profile? Or can we just pass the address fields above to the page?
TIA
Mark
You can use the google maps geocoding service to convert your addresses to lat/lng points which can be transferred to the map as a parameter.

How to handle mixed Google Places queries that contain both place name and location?

I need to develop a Point of Interest search application. I would like to allow users to enter queries like "Starbucks in San Diego" or "San Diego Starbucks". I'm able to do this on map.google.com, but I'm not sure if any such heuristic capability is provided by the Google Maps API.
I'm already using Google Places to look for places within a specific area. And I can use Geocoding API to locate addresses on the map.
Is this possible at all with the current API? Any suggestion for doing this?
I would recommend using the Google Places Autocomplete API to perform a request with the input parameter as "San Diego Starbucks", this will return a list of predictions:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=San%20Diego%20Starbucks&sensor=false&key=your_api_key
You can then use the returned reference parameter from a prediction to perform a Place Details Request which will provide you with more information about the selected place, including address and geographical location:
https://maps.googleapis.com/maps/api/place/details/json?reference=ClREAAAA2UwUUGS85fmru6jzwcSS6fcaMgPItqqLPB-cyTTJm6dMSX0IPmpHAqUR6JWiWoZWrtk6sPI_TJzlfoHma4m0kk3VAoDMu21gebdIdtaMnscSEDDjFLZ5iCC-W1iiAvbZM3caFJuU7TIwS6vj9T77wk24BfpeObSB&sensor=true&key=you_api_key

help geocoding a vb.net dataset

i am looking to map a dataset of addresses on a map.
basically, i want the users to type a street name in my town and be able to see the houses that have signed up already on that street. so a pinpoint should show up on the houses that came up on the dataset.
at first i was thinking of just geocoding all the address and uploading the excel sheet into a database however, this wont work because new signups would then lack longitudes and latitudes
so what i am aiming to do is geocode the addresses on server side and then mapping the geocoded results
The Artem Google Maps control, available on Codeplex.com will let you geocode using the Google Map API from an address. If you have a very large number of records you want to geocode, I recommend MS Mappoint, which has a COM API that can easily be called from .NET.

search for hospital near a location using Google Maps API v3

How to search for a hospital near a location (by city, state, zip, address) using Google maps API V3.
Yahoo has a pretty good rest based web service where we can create a NSUrl object with this url (http://local.yahooapis.com/LocalSearchService/V2/localSearch?appid=myappid&query=hospital&zip=10301) and pass it to a NSParser which will return all the hospitals near that zip.
How can we do the something like this using google api?? We have to use google api.
Check out the Google Places API-- it's fairly recent but should do exactly what you're looking for: http://code.google.com/apis/maps/documentation/javascript/places.html

Resources