Add Functionality To Get Distance Between Cities/zip Codes Into Website?

Oct 22, 2010

Im looking for the functionality seen in most commercial websites like google maps to get approximate distance between cities and zip codes. Im guessing these sites are using huge databases with all this information already in them. It would be interesting to learn how to create this functionality myself but Im sure that would require a great deal of time. So Im looking for a package where someone has already done the work(an API) that would allow me to enter two different zip codes or maybe two different city,state combinations and take actions from there.

View 5 Replies


Similar Messages:

AJAX :: Get A List Of Cities With Zip Codes When Type In A Country Code?

Jan 30, 2010

The task is this: Create custom AJAX method with option to call server side ASPX page and predefined Web Service: a.) Get all cities from ASPX page by given Country Code. For ex. send country code "US" to get a result of a unknown number of cities such as "Washington", "New York", "Houston" etc. with their corresponded ZIP codes (1000, 1100, 1200 etc); b.) Call a web service, posting ZIP code which returns does the code represent palindrome string (A number that reads the same whether written forwards or backwards).

View 1 Replies

Retrieving Updated List Of Countries States And Cities In A Website?

Mar 4, 2010

I'm trying to create a User Registration page in ASP.NET and wondering what is the best way to get the list of up-to-date Countries and Cities? Are there any Web Services on the web that I can use to retrieve such information? If not, what are the options?

View 2 Replies

Give RSS Feed Functionality To Website?

May 4, 2010

I have a asp.net website. For that site, i want to give RSS feed for my users. How can i do that?. I want a basic tutorial for this.

View 1 Replies

Web Forms :: Creating A Website With SMS Functionality

Sep 3, 2013

I've done a lot of research regarding sending and receiving SMS, but all of the examples are for Windows Form. I need it to be for Web Apps. I know that i would need to use AT Commands to send and receive SMS. But I don't get how is it being used.

View 1 Replies

Javascript - Print Functionality Implementation In Website?

Nov 29, 2010

Currently I am implementing print functionality in a website. Can any one tell me what are the best practice to implement this?

View 2 Replies

C# - How To Add OAuth Login Functionality To Membership Website

Jul 3, 2010

I have a web aaplication which currently has a bunch of users and use Asp.net Membership to create and manage users.

I want to add OAuth functionality to my application and want to still using Asp.net Membership (login , etc ). ( and I also want my user login to application with any public social network ID , if that network use a OAuth membership.

How can I use Asp.net and OAuth (open ID) beside each other ?

I also want to add a new page for users to create a profile for themeselve.

View 1 Replies

Configuration :: IO Functionality Not Working On Published Website?

Mar 17, 2011

I am writing some IO functionality into my ASP.net page (C#). Basically what Im trying to do is, to get a list of file/folder names from a network share and display them on the webpage.

It works great in my DEV environment, on my machine, but it does not work on the published version on my IIS machine. I have not been able to get it to throw an error (I'll keep trying in the meantime). But, it would seem to me that it is some sort of permissions issue. I have given the ASPNET user admin access on the network machine, that the folder share is located. I have added NETWORK SERVICE (with FULL access) to the security rights of the shares Im trying to access.

View 5 Replies

Web Forms :: Implement Search Functionality In Website

Nov 26, 2012

I want to create a seach box as used in this website for searching topics and other information for my asp.net website.

How may I implement this.

I do not want to use google custom search.

View 1 Replies

How To Include Functionality Inside A Static HTML Website

May 14, 2010

I have a requirement to add a new asp.net functionality to an existing static html web site.Its about adding few text boxes and connecting to database and displaying information on the html web site.Is it possible to merge html and asp.net on a html web site?

View 3 Replies

C# - Combo-box Fill With The Metropolitan Cities At Top

Mar 23, 2011

m trying fill the combo box from cities database but i wan the metropolitan cities at the top of the selection menu i have used this approach i there any alternative??

[Code]....

and the combo box in designer

<div class="row">
<label>
City :</label>
<ajaxToolkit:ComboBox ID="ddCities" runat="server" AutoPostBack="False"
DropDownStyle="DropDownList"
AutoCompleteMode="SuggestAppend"
CaseSensitive="False"
CssClass=""
ItemInsertLocation="Append" Width="380px"></ajaxToolkit:ComboBox>

am achieving the purpose but it doesn't seems ideal since hard coded and also entries are repeated

View 1 Replies

MVC :: Showing Cities With Value's State In Html.dropdownlist?

Mar 6, 2010

i have two dropdownlis for showing State and City. when i select a state i want to show city's state.

how can i send value's state to controller and return list of city to view.

View 4 Replies

Social Networking :: Get Nearby Cities Using Latitude And Longitude?

Mar 12, 2014

i have latitude and longitude of one city.when i give miles as input,all the cities with its latitude and longitude will display.how to do it in mvc 4 

View 1 Replies

Get Driving Distance Betwwen Two Points?

Nov 19, 2010

I am using below link to get direction:[URL] wheb i hit above url in browser then i get xml response, can anyone tell me how to fetch shortest distance from that response(XML). i need distance only, not direction.

View 1 Replies

Find Distance By Latitude And Longitude?

Nov 13, 2010

i am trying to find distance by latitude and longtitude by using this formula mentioned in this site.

[URL]

every thing is Ok there when i do it by calculator but when i started doing it by programmatically there is a diiference in result.

here is my part of code

lat = Convert.ToDouble( (s3[a]));
longt =Convert.ToDouble( (s4[a]));
Avg_lat = pc._Latitude - lat;
Avg_longt = pc._Longitude - longt;
a_hold =( Math.Sin(Avg_lat / 2) * Math.Sin(Avg_lat / 2) )+ (Math.Cos(pc._Latitude) * Math.Cos(lat)) * (Math.Sin(Avg_longt / 2) * Math.Sin(Avg_longt / 2));
c_hold = 2 * Math.Atan2(Math.Sqrt(a_hold), Math.Sqrt(1 - a_hold));
// c_hold = (c_hold * 180) / 3.12;
distance = 6371 * c_hold;

the problem is Math funcation here calculate the things in radian i want it in degree. so i just found a formula to convert radian into degree but that formula does'nt convert the calculation correctly..

what to do bcoz there is'nt any other option to convert radian into degree..

View 2 Replies

Calculate Distance Between Areas Dynamically?

Apr 14, 2010

my site I want to calculate the distance between two areas of same city.Like I am using a search criteria where I have a drop down list. In which options are as below.

100km-70km
70km-50km
50km-10km

When user selects any one of the options the schools or shops in the specified area should be displayed. Is it possible to dynamically calculate the distance,

View 4 Replies

Dropdown To Display Respective States When Specific Country Is Selected Similarly For Cities

May 19, 2010

I need a dropdown to display respective states when specific country is selected similarly for cities. I kept 3 dropdowns for country, state and city with 3 different tables with primary, foreign key constraints and stored procedures. The Stored Procedure is as shown ALTER PROCEDURE [dbo].[Usp_countryselect]

WITH
EXECUTE AS CALLER
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SELECT [country_id], [country_name]
FROM country
Similarly for states and city.

The code for populate lists is as shown

public class PopulateLists
{
public int FillCountry(ref System.Web.UI.WebControls.DropDownList drpdown)
{
SqlDatabase db = new SqlDatabase();
DbCommand cmd=db.GetStoredProcCommand("USP_countryselect");
DataSet dsCountry= db.ExecuteDataSet(cmd);
drpdown.DataSource =dsCountry.Tables[0] ; drpdown.DataTextField=dsCountry.Tables[0].Columns["country_name"].ToString() ;
drpdown.DataValueField = dsCountry.Tables[0].Columns["country_id"].ToString() ;
drpdown.DataBind();
return 1;
}
public int FillState(ref System.Web.UI.WebControls.DropDownList drpdown)
{
SqlDatabase db = new SqlDatabase();
DbCommand cmd = db.GetStoredProcCommand("USP_statesselect");
DataSet dsStates = db.ExecuteDataSet(cmd);
drpdown.DataSource = dsStates.Tables[0];
drpdown.DataTextField = dsStates.Tables[0].Columns["state_name"].ToString();
drpdown.DataValueField = dsStates.Tables[0].Columns["state_id"].ToString();
drpdown.DataBind();
return 1;
}
.
.
.
}
protected void Page_Load(object sender, EventArgs e)
{
BindDropdowns();
}
protected void BindDropdowns()
{
PopulateLists objPopulateLists = new PopulateLists();
int bytReturn;
bytReturn = objPopulateLists.FillCountry(ref Drpcountry);
bytReturn = objPopulateLists.FillState(ref Drpstate);
bytReturn = objPopulateLists.FillCity(ref Drpcity);
}

But in the output screen it is displaying all the values in the dropdowns irrespective of country and state selection.

View 3 Replies

AJAX :: Like To Display All City Of Selected State In Check Box So That User Can Choose Multiple Cities?

Mar 15, 2010

Since I am new to Ajax control kit so thought to ask this question,I need to know what controls should i use for the following requirement.I've a state Drop down on selection of state drop down i would like to display all city of selected state in check box so that user can choose multiple cities and would like check box control to display only 5 city name per row for example if there are 10 cities in one state it should show 2 rows with 4 city and one row for 2 city.

View 1 Replies

API To Calculate Drive Distance Between 2 US Street Addresses?

Apr 22, 2010

Seems simple but users have no internet access. The application will be hosted internally on as Intranet site. The application will be able to make webservice calls to the internet. I tested and tried Mapquest. However all the other providers seems to assume the users are able to access the internet so their API's are javascript based with src tags pointing to internet URL's

View 4 Replies

Social Networking :: Google Map API - Get Distance In Miles Instead Of Kilometers (KM)

May 7, 2015

Following the series of question, this is the code as of now has been developed and working fine. Now need to make some more tweek with this

1. Instead of distance from source to destination in KM can we have it in Miles

2. I need to show the distance between source and destinace only if destination falls under 25 mile radius from source else need to show the label message that no record found.

Here is the code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sqlmap.aspx.cs" Inherits="sqlmap" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

[Code] ....

C# file
-----
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

[Code] ....

View 1 Replies

Search Functionality - Search The Whole Website And Returns The Results

Jan 26, 2010

I created a website. I would like to include a search box that searches the whole website and returns the results.

View 2 Replies

Social Networking :: Google Maps Distance Calculator From Database

Mar 26, 2016

I used a Google Maps Distance Finder API that comes with two textboxes, one for the source, and one for the destination. It also comes with a button, that when clicked, will find the distance between the two locations using the funciton GetDistance(). The code before the function initializes the map. I created another button and used VB.Net to run SQL code first, and then to automatically populate the two textboxes, then I had it call the function GetDistance().

The issue I ran into is that the function won't calculate the distance, and the map never changes from its default state. I believe it's because it's not running the code that initializes the map. (I could be wrong) I have tried WebBrowser1, to call the click of the button, but I had to Inherit Forms, which I can't do, and I have also tried adding the top code into the GetDistance() function. Is it possible to call the initializing code before GetDistance()?

Here is the JS function code:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script type="text/javascript">
var source, destination;
var directionsDisplay;
var directionsService = new google.maps.DirectionsService();
google.maps.event.addDomListener(window, 'load', function () {

[Code] ....

Here is the VB Code I use to call the JS Function: 

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Dim cn As New OleDb.OleDbConnection("Provider = Microsoft.ACE.OleDb.12.0;" & _
"Data Source=|DataDirectory|Address Database One Calculation.mdb")
cn.Open()
Dim cmd1 As OleDb.OleDbCommand
Dim sqlconnection1 As String

[Code] .....

For reference, here is the explanation of the full API Code: [URL] ....

View 1 Replies

Configuration :: Slow Performance With Offshore Hosting - Does Distance Between Servers And DBs Matter

Sep 7, 2010

I just had to moved a site of mine from a hosting service here in the states to an offshore host located in Malaysia. My database is still located on the east coast of north america and I am wondering if the distance between the database and the file system might be to blame for slow load times or if moving my database as well would be a waste of time.

View 2 Replies

Social Networking :: Calculate Distance From Latitude And Longitude In Google Maps V3

Jan 8, 2014

I have variable as

var from_Lati = 19.132324234  // from latitude
var from_longi = 19.11233334  // from longitude

and I have TO latitude and Longitude in Array as

var To_Lati = [18.132323,18.90941,18.31232423]   // to latitude in array
var To_Longi = [18.2132123,18.242423,18.43243]   // to longitude in array

I have gone through many reference on internet but can't find the solution for calculating the distance with respect to array.. Now I want to find the distance between them using JavaScript...

View 1 Replies

Social Networking :: Google Maps API V3 - Calculate Distance And Plot Route Between Two Locations

May 7, 2015

I want to  create a google maps that it can Calculate Distance, Travel Duration, draw (plot) Route  between two locations and display Directions. Now I want to hide Directions Panel.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved