Search code examples
jqueryvb.netgoogle-mapsproximitypostal-code

Postcode proximity search


I have about 20 events (UK based if that makes a difference).

I will also have a form on a page where people can register their interest in attending one of these events. After they have submitted this form, they will be shown the location of the closest event to them.

Trouble is I have no idea how to do this. Is there anything linked to google maps that can achieve this or do I need to buy something that does this... or can it be fairly easily achieved server side based on the fact I only have a small number of events.

If it needs to be done server side I'm running asp.net (vb) or I'm fairly up to speed with javascript/jquery.

Thanks


Solution

  • Most likely what you want is the harvesine-formule-math to calculate the distance from your client's location and your event. Like Luke worked it out a spatial index-query enabled database can help you greatly.