I'm currently working on an evaluation of school admissions policies so I am quite familiar with this area!
I'd advise you to look on the website of your local authority - they have to publish the admissions criteria by law. You need to find out whether you apply to your own authority or to the neighbouring authority for a place in their schools.
If you live closer to the school than your friend then unless she comes higher on the list because of particular criteria (e.g. if her child has special educational needs or if she already has a child at the school), your child will be higher on the list than hers.
I would also advise you to look at the admissions figures, and on the websites it also tends to say somewhere (usually in the admissions booklet) how many children were admitted to each school in the previous year, which will give you an idea of whether it's oversubscribed.